mirror of
https://github.com/EdgeTX/edgetx.git
synced 2025-07-24 00:35:14 +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()) {
|
if (TELEMETRY_STREAMING()) {
|
||||||
lcdDrawCenteredText(LCD_H/2, "Turn off receiver");
|
lcdDrawCenteredText(LCD_H/2, "Turn off receiver");
|
||||||
|
if(event == EVT_KEY_FIRST(KEY_EXIT)) {
|
||||||
|
killEvents(event);
|
||||||
|
popMenu();
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,10 @@ void menuRadioSpectrumAnalyser(event_t event)
|
||||||
{
|
{
|
||||||
if (TELEMETRY_STREAMING()) {
|
if (TELEMETRY_STREAMING()) {
|
||||||
lcdDrawCenteredText(15, "Turn off receiver");
|
lcdDrawCenteredText(15, "Turn off receiver");
|
||||||
|
if(event == EVT_KEY_FIRST(KEY_EXIT)) {
|
||||||
|
killEvents(event);
|
||||||
|
popMenu();
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue