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:
vanhofen
2020-02-11 23:47:24 +01:00
parent 5ad6562156
commit 0eecfaaf27

View File

@@ -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);