kopia lustrzana https://github.com/OpenRTX/OpenRTX
UI: Fixed GPS OFF bug caused by ambiguous enable/disable code
rodzic
9de0857ff4
commit
cbe657cd77
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue