mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
small fix
Origin commit data
------------------
Commit: 1b7dffe37a
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2020-01-18 (Sat, 18 Jan 2020)
This commit is contained in:
@@ -484,12 +484,12 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
||||
g_settings.ci_standby_reset = configfile.getInt32("ci_standby_reset", 0);
|
||||
|
||||
#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE
|
||||
for (int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) {
|
||||
for (unsigned int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) {
|
||||
sprintf(cfg_key, "ci_clock_%d", i);
|
||||
g_settings.ci_clock[i] = configfile.getInt32(cfg_key, 6);
|
||||
}
|
||||
#else
|
||||
for (int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) {
|
||||
for (unsigned int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) {
|
||||
sprintf(cfg_key, "ci_clock_%d", i);
|
||||
g_settings.ci_clock[i] = configfile.getInt32(cfg_key, 9);
|
||||
}
|
||||
@@ -497,12 +497,12 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
||||
|
||||
#if BOXMODEL_VUPLUS
|
||||
g_settings.ci_delay = configfile.getInt32("ci_delay", 256);
|
||||
for (int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) {
|
||||
for (unsigned int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) {
|
||||
sprintf(cfg_key, "ci_rpr_%d", i);
|
||||
g_settings.ci_rpr[i] = configfile.getInt32(cfg_key, 9);
|
||||
}
|
||||
#endif
|
||||
for (int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) {
|
||||
for (unsigned int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); 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);
|
||||
@@ -1495,19 +1495,19 @@ void CNeutrinoApp::saveSetup(const char * fname)
|
||||
configfile.setInt32( "standby_cpufreq", g_settings.standby_cpufreq);
|
||||
|
||||
configfile.setInt32("ci_standby_reset", g_settings.ci_standby_reset);
|
||||
for (int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) {
|
||||
for (unsigned int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) {
|
||||
sprintf(cfg_key, "ci_clock_%d", i);
|
||||
configfile.setInt32(cfg_key, g_settings.ci_clock[i]);
|
||||
}
|
||||
|
||||
#if BOXMODEL_VUPLUS
|
||||
configfile.setInt32("ci_delay", g_settings.ci_delay);
|
||||
for (int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) {
|
||||
for (unsigned int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) {
|
||||
sprintf(cfg_key, "ci_rpr_%d", i);
|
||||
configfile.setInt32(cfg_key, g_settings.ci_rpr[i]);
|
||||
}
|
||||
#endif
|
||||
for (int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) {
|
||||
for (unsigned int i = 0; i < cCA::GetInstance()->GetNumberCISlots(); i++) {
|
||||
sprintf(cfg_key, "ci_ignore_messages_%d", i);
|
||||
configfile.setInt32(cfg_key, g_settings.ci_ignore_messages[i]);
|
||||
sprintf(cfg_key, "ci_save_pincode_%d", i);
|
||||
|
Reference in New Issue
Block a user