From 77b56810e8e3ada44dbd95e4864e594509193500 Mon Sep 17 00:00:00 2001 From: euquiq <31453004+euquiq@users.noreply.github.com> Date: Tue, 16 Jun 2020 02:18:29 -0300 Subject: [PATCH] GPS SIMULATOR EXIT ON PLAY FIX Now, if you exit the GPS SIMULATOR while transmitting, it will properly stop the radio and won't crash, exiting as expected. --- firmware/application/apps/gps_sim_app.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/application/apps/gps_sim_app.cpp b/firmware/application/apps/gps_sim_app.cpp index 6bb5683b..fb7babc1 100644 --- a/firmware/application/apps/gps_sim_app.cpp +++ b/firmware/application/apps/gps_sim_app.cpp @@ -234,6 +234,8 @@ GpsSimAppView::~GpsSimAppView() { void GpsSimAppView::on_hide() { // TODO: Terrible kludge because widget system doesn't notify Waterfall that // it's being shown or hidden. + if( is_active() ) + stop(false); waterfall.on_hide(); View::on_hide(); }