add neutrino restart to webif

Origin commit data
------------------
Branch: ni/coolstream
Commit: 822993d333
Author: TangoCash <eric@loxat.de>
Date: 2021-09-17 (Fri, 17 Sep 2021)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2021-09-17 23:20:40 +02:00
committed by vanhofen
parent 7f3f22ea62
commit f92278c106
11 changed files with 44 additions and 3 deletions

View File

@@ -4567,6 +4567,9 @@ int CNeutrinoApp::handleMsg(const neutrino_msg_t _msg, neutrino_msg_data_t data)
}
return messages_return::handled;
}
else if( msg == NeutrinoMessages::RESTART ) {
ExitRun(CNeutrinoApp::EXIT_RESTART);
}
else if( msg == NeutrinoMessages::REBOOT ) {
ExitRun(CNeutrinoApp::EXIT_REBOOT);
}
@@ -4849,7 +4852,7 @@ 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 (exit_code != EXIT_NORMAL && exit_code != EXIT_RESTART)
{
if (timer_minutes)
{
@@ -5403,6 +5406,12 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
ExitRun(CNeutrinoApp::EXIT_REBOOT);
returnval = menu_return::RETURN_NONE;
}
else if (actionKey=="restart")
{
videoDecoder->SetCECMode((VIDEO_HDMI_CEC_MODE)0);
ExitRun(CNeutrinoApp::EXIT_RESTART);
returnval = menu_return::RETURN_NONE;
}
else if (actionKey=="clock_switch")
{
InfoClock->switchClockOnOff();