mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
neutrino: try to fix reading ci-settings for cst hardware
Origin commit data
------------------
Commit: bb3a1e847f
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-02-11 (Tue, 11 Feb 2020)
Origin message was:
------------------
- neutrino: try to fix reading ci-settings for cst hardware
This commit is contained in:
@@ -485,7 +485,16 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
||||
g_settings.ci_delay = configfile.getInt32("ci_delay", 256);
|
||||
#endif
|
||||
// ci-settings for each slot
|
||||
for (unsigned int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) {
|
||||
unsigned int ci_slots = cCA::GetInstance()->GetNumberCISlots();
|
||||
if (strcmp(g_info.hw_caps->boxvendor, "Coolstream") == 0)
|
||||
{
|
||||
/*
|
||||
CST hardware isn't initialized here,
|
||||
so we assume one ci-slot (two for HD1 BSE).
|
||||
*/
|
||||
ci_slots = (strcmp(g_info.hw_caps->boxname, "HD1") == 0) ? 2 : 1;
|
||||
}
|
||||
for (unsigned int i = 0; i < ci_slots; i++) {
|
||||
sprintf(cfg_key, "ci_ignore_messages_%d", i);
|
||||
g_settings.ci_ignore_messages[i] = configfile.getInt32(cfg_key, 0);
|
||||
sprintf(cfg_key, "ci_save_pincode_%d", i);
|
||||
|
Reference in New Issue
Block a user