lcd4l: fix removing start/stop hint when init script fails

Origin commit data
------------------
Commit: 921df0c713
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-07-16 (Fri, 16 Jul 2021)

Origin message was:
------------------
- lcd4l: fix removing start/stop hint when init script fails
This commit is contained in:
vanhofen
2021-07-16 23:51:41 +02:00
parent 3e4568dd55
commit 6a4864a988
3 changed files with 13 additions and 4 deletions

View File

@@ -169,6 +169,8 @@ void CLCD4l::StartLCD4l()
{
if (exec_initscript("lcd4linux", "start"))
OnAfterStart();
else
OnAfterError();
}
}
@@ -190,6 +192,8 @@ void CLCD4l::StopLCD4l()
if (exec_initscript("lcd4linux", "stop"))
OnAfterStop();
else
OnAfterError();
}
void CLCD4l::SwitchLCD4l()
@@ -879,6 +883,8 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
OnBeforeRestart();
if (exec_initscript("lcd4linux", "restart"))
OnAfterRestart();
else
OnAfterError();
}
}
}