Cosmetics
This commit is contained in:
@@ -24,6 +24,8 @@ extern uint8_t g_moduleIdx;
|
||||
|
||||
void menuRadioPowerMeter(event_t event)
|
||||
{
|
||||
SIMPLE_SUBMENU("POWER METER", 1);
|
||||
|
||||
if (TELEMETRY_STREAMING()) {
|
||||
lcdDrawCenteredText(LCD_H/2, "Turn off receiver");
|
||||
if (event == EVT_KEY_FIRST(KEY_EXIT)) {
|
||||
@@ -33,11 +35,8 @@ void menuRadioPowerMeter(event_t event)
|
||||
return;
|
||||
}
|
||||
|
||||
SIMPLE_SUBMENU("POWER METER", 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;
|
||||
|
||||
@@ -435,6 +435,6 @@ void menuRadioSdManager(event_t _event)
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
lcdDrawText(6*FW+3, 4*FH, STR_NO_SDCARD);
|
||||
lcdDrawCenteredText(LCD_H/2, STR_NO_SDCARD);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user