- neutrino.cpp: stop lcd4l thread for flashing and remove dead code

In src/system/flashtool.cpp there was still old, unused code,
which once stopped LCD4L during flash. However, it has not been
jumped and executed for a long time. I have removed it now and
introduced the corresponding code section in neutrino.cpp in
stop_deamons() and reactivated so the stopping of the daemon.
The sighandler() function calls up also stop_daemons(),
so I removed the code there
This commit is contained in:
GetAway
2022-05-28 21:04:58 +02:00
parent 09b8632d01
commit e0cdb41576
3 changed files with 6 additions and 20 deletions

View File

@@ -44,10 +44,6 @@
#include <neutrino.h>
#include <driver/display.h>
#ifdef ENABLE_LCD4LINUX
#include "driver/lcd4l.h"
#endif
CFlashTool::CFlashTool()
{
statusViewer = NULL;
@@ -340,17 +336,6 @@ bool CFlashTool::getInfo()
return true;
}
void CFlashTool::stopDaemons()
{
#ifdef ENABLE_LCD4LINUX
if (g_settings.lcd4l_support)
CLCD4l::getInstance()->StopLCD4l();
#endif
CNeutrinoApp::getInstance()->stopDaemonsForFlash();
}
bool CFlashTool::erase(int globalProgressEnd)
{
erase_info_t lerase;