Cosmetics

This commit is contained in:
Bertrand Songis
2019-04-17 10:43:07 +02:00
parent d6b4265c28
commit da69083bce
6 changed files with 11 additions and 13 deletions
@@ -30,8 +30,10 @@ enum SpektrumFields {
void menuRadioSpectrumAnalyser(event_t event)
{
SUBMENU("SPECTRUM ANALYSER", 1, {1});
if (TELEMETRY_STREAMING()) {
lcdDrawCenteredText(15, "Turn off receiver");
lcdDrawCenteredText(LCD_H/2, "Turn off receiver");
if (event == EVT_KEY_FIRST(KEY_EXIT)) {
killEvents(event);
popMenu();
@@ -39,11 +41,8 @@ void menuRadioSpectrumAnalyser(event_t event)
return;
}
SUBMENU("SPECTRUM ANALYSER", 1, {1});
if (menuEvent) {
const char * message = "Stopping...";
lcdDrawText(LCD_W / 2 - getTextWidth(message) / 2, 4*FH, message);
lcdDrawCenteredText(LCD_H/2, "Stopping...");
lcdRefresh();
pausePulses();
moduleSettings[g_moduleIdx].mode = MODULE_MODE_NORMAL;