linuxdvb: minor corrections to the diseqc code.
This commit is contained in:
parent
e4a510deb6
commit
0f286913de
3 changed files with 6 additions and 4 deletions
1
Makefile
1
Makefile
|
@ -179,7 +179,6 @@ SRCS-${CONFIG_LINUXDVB} += \
|
|||
src/input/mpegts/linuxdvb/linuxdvb_lnb.c \
|
||||
src/input/mpegts/linuxdvb/linuxdvb_switch.c \
|
||||
src/input/mpegts/linuxdvb/linuxdvb_rotor.c \
|
||||
src/input/mpegts/linuxdvb/diseqc.c
|
||||
|
||||
# IPTV
|
||||
SRCS-${CONFIG_IPTV} += \
|
||||
|
|
|
@ -211,9 +211,11 @@ linuxdvb_lnb_create0
|
|||
( const char *name, htsmsg_t *conf )
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < ARRAY_SIZE(linuxdvb_lnb_list); i++) {
|
||||
if (!strcmp(linuxdvb_lnb_list[i].lnb_name, name))
|
||||
return (linuxdvb_lnb_t*)&linuxdvb_lnb_list[i];
|
||||
if (name) {
|
||||
for (i = 0; i < ARRAY_SIZE(linuxdvb_lnb_list); i++) {
|
||||
if (!strcmp(linuxdvb_lnb_list[i].lnb_name, name))
|
||||
return (linuxdvb_lnb_t*)&linuxdvb_lnb_list[i];
|
||||
}
|
||||
}
|
||||
return (linuxdvb_lnb_t*)linuxdvb_lnb_list; // Universal
|
||||
}
|
||||
|
|
|
@ -249,6 +249,7 @@ linuxdvb_diseqc_t *
|
|||
linuxdvb_rotor_create0
|
||||
( const char *name, htsmsg_t *conf )
|
||||
{
|
||||
if (!name) return NULL;
|
||||
linuxdvb_diseqc_t *ld
|
||||
= linuxdvb_diseqc_create(linuxdvb_rotor, NULL, conf);
|
||||
if (ld) {
|
||||
|
|
Loading…
Add table
Reference in a new issue