Prevent simu lockup on exit

This commit is contained in:
Raphael Coeffic
2022-06-11 15:38:08 +02:00
committed by Raphael Coeffic
parent 7702ee7bba
commit df7db43940
3 changed files with 25 additions and 0 deletions
+9
View File
@@ -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