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
|
// Disable or Enable GPS to stop or start GPS thread
|
||||||
if(state.settings.gps_enabled)
|
if(state.settings.gps_enabled)
|
||||||
{
|
{
|
||||||
state.settings.gps_enabled = !state.settings.gps_enabled;
|
state.settings.gps_enabled = 0;
|
||||||
gps_disable();
|
gps_disable();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
state.settings.gps_enabled = !state.settings.gps_enabled;
|
state.settings.gps_enabled = 1;
|
||||||
gps_enable();
|
gps_enable();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Ładowanie…
Reference in New Issue