fix(simu): simulator shutdown (#6196)

Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
This commit is contained in:
Raphael Coeffic
2025-05-06 13:57:46 +10:00
committed by GitHub
co-authored by philmoz
parent 36172d7f44
commit a3e1f1c021
11 changed files with 118 additions and 56 deletions
+2 -2
View File
@@ -64,7 +64,7 @@ static void menusTask()
mixerTaskInit();
#if defined(PWR_BUTTON_PRESS)
while (true) {
while (task_running()) {
uint32_t pwr_check = pwrCheck();
if (pwr_check == e_power_off) {
break;
@@ -111,7 +111,7 @@ static void audioTask()
#endif
time_point_t next_tick = time_point_now();
while (true) {
while (task_running()) {
DEBUG_TIMER_SAMPLE(debugTimerAudioIterval);
DEBUG_TIMER_START(debugTimerAudioDuration);
audioQueue.wakeup();