Changeset 5075 for trunk/oscam-config.c
- Timestamp:
- 04/25/11 12:38:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam-config.c
r5072 r5075 151 151 } 152 152 153 void chk_caidvaluetab(char *lbrlt, CAIDVALUETAB *tab )153 void chk_caidvaluetab(char *lbrlt, CAIDVALUETAB *tab, int minvalue) 154 154 { 155 155 int32_t i; … … 168 168 if (((caid = a2i(ptr1, 2)) < 0xFFFF) | ((value = atoi(ptr2)) < 10000)) { 169 169 tab->caid[i] = caid; 170 if (value < minvalue) value = minvalue; 170 171 tab->value[i] = value; 171 172 tab->n = ++i; … … 549 550 if (!strcmp(token, "lb_nbest_readers")) { 550 551 cfg.lb_nbest_readers = strToIntVal(value, DEFAULT_NBEST); 552 if (cfg.lb_nbest_readers < 2) 553 cfg.lb_nbest_readers = DEFAULT_NBEST; 551 554 return; 552 555 } … … 578 581 579 582 if (!strcmp(token, "lb_retrylimits")) { 580 chk_caidvaluetab(value, &cfg.lb_retrylimittab );583 chk_caidvaluetab(value, &cfg.lb_retrylimittab, 50); 581 584 return; 582 585 } 583 586 584 587 if (!strcmp(token, "lb_nbest_percaid")) { 585 chk_caidvaluetab(value, &cfg.lb_nbest_readers_tab );588 chk_caidvaluetab(value, &cfg.lb_nbest_readers_tab, 1); 586 589 return; 587 590 }
Note:
See TracChangeset
for help on using the changeset viewer.