mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-18 11:02:16 +00:00
Check for GPS and don't crash
This commit is contained in:
parent
f8c8001b1c
commit
b1b33c39ac
@ -1371,7 +1371,7 @@ int Screen::handleInputEvent(const InputEvent *event)
|
||||
});
|
||||
#endif
|
||||
#if HAS_GPS
|
||||
} else if (this->ui->getUiState()->currentFrame == framesetInfo.positions.gps) {
|
||||
} else if (this->ui->getUiState()->currentFrame == framesetInfo.positions.gps && gps) {
|
||||
showOverlayBanner("Toggle GPS\nENABLED\nDISABLED", 30000, 2, [](int selected) -> void {
|
||||
if (selected == 0) {
|
||||
config.position.gps_enabled = true;
|
||||
|
Loading…
Reference in New Issue
Block a user