neutrino: don't write timerinfo's when exiting to reboot

Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Branch: ni/coolstream
Commit: 37028e518b
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-26 (Sun, 26 Nov 2017)

Origin message was:
------------------
- neutrino: don't write timerinfo's when exiting to reboot

Signed-off-by: Thilo Graf <dbt@novatux.de>


------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-11-26 23:29:43 +01:00
committed by Thilo Graf
parent 665849c44e
commit 72f64ec7fa

View File

@@ -3889,6 +3889,8 @@ void CNeutrinoApp::ExitRun(int exit_code)
if (cs_get_revision() != 10) if (cs_get_revision() != 10)
bright = g_settings.lcd_setting[SNeutrinoSettings::LCD_DEEPSTANDBY_BRIGHTNESS]; bright = g_settings.lcd_setting[SNeutrinoSettings::LCD_DEEPSTANDBY_BRIGHTNESS];
#endif #endif
if (exit_code != CNeutrinoApp::EXIT_REBOOT)
{
if (timer_minutes) if (timer_minutes)
{ {
time_t t = timer_minutes * 60; time_t t = timer_minutes * 60;
@@ -3922,6 +3924,7 @@ void CNeutrinoApp::ExitRun(int exit_code)
} }
else else
perror("fopen /tmp/.timer"); perror("fopen /tmp/.timer");
}
delete g_RCInput; delete g_RCInput;
g_RCInput = NULL; g_RCInput = NULL;