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

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2017-11-26 23:29:43 +01:00
committed by Thilo Graf
parent 25c8220888
commit 37028e518b

View File

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