mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-18 19:12:09 +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
|
#endif
|
||||||
#if HAS_GPS
|
#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 {
|
showOverlayBanner("Toggle GPS\nENABLED\nDISABLED", 30000, 2, [](int selected) -> void {
|
||||||
if (selected == 0) {
|
if (selected == 0) {
|
||||||
config.position.gps_enabled = true;
|
config.position.gps_enabled = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user