From 9bc62ea490177eeedfed2f847ca9c1bfdfffbfe8 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Fri, 8 Nov 2019 20:44:31 +0100 Subject: [PATCH] Simulator exit issue fixed --- radio/src/gui/colorlcd/fullscreen_dialog.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/radio/src/gui/colorlcd/fullscreen_dialog.cpp b/radio/src/gui/colorlcd/fullscreen_dialog.cpp index 18aed3f30..8578e54cd 100644 --- a/radio/src/gui/colorlcd/fullscreen_dialog.cpp +++ b/radio/src/gui/colorlcd/fullscreen_dialog.cpp @@ -128,6 +128,9 @@ void FullScreenDialog::runForever() auto check = pwrCheck(); if (check == e_power_off) { boardOff(); +#if defined(SIMU) + return; +#endif } else if (check == e_power_press) { RTOS_WAIT_MS(20);