Update SystemCommandsModule.cpp

Removed GPS checking
This commit is contained in:
Paxy 2025-07-24 18:34:07 +02:00 committed by GitHub
parent f31c058f5f
commit 031aec6ae4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -76,9 +76,6 @@ int SystemCommandsModule::handleInputEvent(const InputEvent *event)
return 0;
case INPUT_BROKER_LOST_TOGGLE:
LOG_WARN("Lost Toggle");
#if !MESHTASTIC_EXCLUDE_GPS
if (gps) {
LOG_WARN("GPS present");
if (config.device.role == meshtastic_Config_DeviceConfig_Role_CLIENT) {
LOG_WARN("Changing mode to LOST_AND_FOUND");
config.device.role = meshtastic_Config_DeviceConfig_Role_LOST_AND_FOUND;
@ -91,8 +88,6 @@ int SystemCommandsModule::handleInputEvent(const InputEvent *event)
nodeDB->saveToDisk(SEGMENT_CONFIG);
}
rebootAtMsec = millis() + DEFAULT_REBOOT_SECONDS * 1000;
}
#endif
return true;
case INPUT_BROKER_MSG_REBOOT:
IF_SCREEN(screen->showSimpleBanner("Rebooting...", 0));