mirror of
https://github.com/EdgeTX/edgetx.git
synced 2025-07-23 16:25:12 +03:00
Cosmetics
This commit is contained in:
parent
d6b4265c28
commit
da69083bce
6 changed files with 11 additions and 13 deletions
|
@ -210,6 +210,6 @@ void menuModelModuleOptions(event_t event)
|
|||
}
|
||||
}
|
||||
else {
|
||||
lcdDrawText(4 * FW, 4 * FH, "Waiting for TX...");
|
||||
lcdDrawCenteredText(LCD_H/2, "Waiting for TX...");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -151,6 +151,6 @@ void menuModelReceiverOptions(event_t event)
|
|||
}
|
||||
}
|
||||
else {
|
||||
lcdDrawText(4 * FW, 4 * FH, "Waiting for RX...");
|
||||
lcdDrawCenteredText(LCD_H/2, "Waiting for RX...");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ void menuRadioTrainer(event_t event)
|
|||
MENU(STR_MENUTRAINER, menuTabGeneral, MENU_RADIO_TRAINER, (slave ? HEADER_LINE : HEADER_LINE+6), { HEADER_LINE_COLUMNS 2, 2, 2, 2, 0/*, 0*/ });
|
||||
|
||||
if (slave) {
|
||||
lcdDrawText(7*FW, 4*FH, STR_SLAVE);
|
||||
lcdDrawCenteredText(LCD_H/2, STR_SLAVE);
|
||||
}
|
||||
else {
|
||||
uint8_t attr;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue