UI: Fixed GPS OFF bug caused by ambiguous enable/disable code

replace/33387fe60aaf16dc45c6024327dc771b26d3faa6
Federico Amedeo Izzo 2021-02-16 22:22:20 +01:00
rodzic 9de0857ff4
commit cbe657cd77
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1090,12 +1090,12 @@ void ui_updateFSM(event_t event, bool *sync_rtx)
// Disable or Enable GPS to stop or start GPS thread
if(state.settings.gps_enabled)
{
state.settings.gps_enabled = !state.settings.gps_enabled;
state.settings.gps_enabled = 0;
gps_disable();
}
else
{
state.settings.gps_enabled = !state.settings.gps_enabled;
state.settings.gps_enabled = 1;
gps_enable();
}
break;