mirror of
https://github.com/EdgeTX/edgetx.git
synced 2025-07-23 08:15:13 +03:00
Allow exit from power/spektrum while receiver is streaming
This commit is contained in:
parent
5fd70d7c8c
commit
dacc537e8b
2 changed files with 8 additions and 0 deletions
|
@ -28,6 +28,10 @@ void menuRadioPowerMeter(event_t event)
|
|||
{
|
||||
if (TELEMETRY_STREAMING()) {
|
||||
lcdDrawCenteredText(LCD_H/2, "Turn off receiver");
|
||||
if(event == EVT_KEY_FIRST(KEY_EXIT)) {
|
||||
killEvents(event);
|
||||
popMenu();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -27,6 +27,10 @@ void menuRadioSpectrumAnalyser(event_t event)
|
|||
{
|
||||
if (TELEMETRY_STREAMING()) {
|
||||
lcdDrawCenteredText(15, "Turn off receiver");
|
||||
if(event == EVT_KEY_FIRST(KEY_EXIT)) {
|
||||
killEvents(event);
|
||||
popMenu();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue