Attempt to fix the issue when coming from Powermeter

This commit is contained in:
Bertrand Songis
2019-04-18 12:46:39 +02:00
parent b399fd25ff
commit 201524d61a
2 changed files with 6 additions and 16 deletions
@@ -48,15 +48,10 @@ void menuRadioPowerMeter(event_t event)
if (menuEvent) { if (menuEvent) {
lcdDrawCenteredText(LCD_H/2, "Stopping..."); lcdDrawCenteredText(LCD_H/2, "Stopping...");
lcdRefresh(); lcdRefresh();
pausePulses();
moduleSettings[g_moduleIdx].mode = MODULE_MODE_NORMAL; moduleSettings[g_moduleIdx].mode = MODULE_MODE_NORMAL;
/* wait 500ms off */ /* wait 1s to resume normal operation before leaving */
watchdogSuspend(500); watchdogSuspend(1000);
RTOS_WAIT_MS(500); RTOS_WAIT_MS(1000);
resumePulses();
/* wait 500ms to resume normal operation before leaving */
watchdogSuspend(500);
RTOS_WAIT_MS(500);
return; return;
} }
@@ -44,15 +44,10 @@ void menuRadioSpectrumAnalyser(event_t event)
if (menuEvent) { if (menuEvent) {
lcdDrawCenteredText(LCD_H/2, "Stopping..."); lcdDrawCenteredText(LCD_H/2, "Stopping...");
lcdRefresh(); lcdRefresh();
pausePulses();
moduleSettings[g_moduleIdx].mode = MODULE_MODE_NORMAL; moduleSettings[g_moduleIdx].mode = MODULE_MODE_NORMAL;
/* wait 500ms off */ /* wait 1s to resume normal operation before leaving */
watchdogSuspend(500); watchdogSuspend(1000);
RTOS_WAIT_MS(500); RTOS_WAIT_MS(1000);
resumePulses();
/* wait 500ms to resume normal operation before leaving */
watchdogSuspend(500);
RTOS_WAIT_MS(500);
return; return;
} }