Prevent simu lockup on exit
This commit is contained in:
committed by
Raphael Coeffic
parent
7702ee7bba
commit
df7db43940
@@ -146,6 +146,13 @@ static void* bootloaderThread(void*)
|
||||
}
|
||||
#endif
|
||||
|
||||
static void lcdExitHandler(lv_disp_drv_t*)
|
||||
{
|
||||
if (simu_shutdown) {
|
||||
lcdFlushed();
|
||||
}
|
||||
}
|
||||
|
||||
void simuStart(bool tests, const char * sdPath, const char * settingsPath)
|
||||
{
|
||||
if (simu_running)
|
||||
@@ -204,6 +211,8 @@ void simuStart(bool tests, const char * sdPath, const char * settingsPath)
|
||||
try {
|
||||
#endif
|
||||
|
||||
lcdSetWaitCb(lcdExitHandler);
|
||||
|
||||
#if !defined(SIMU_BOOTLOADER)
|
||||
simuMain();
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user