Attempt to fix the issue when coming from Powermeter
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user