fixed gps init value

This commit is contained in:
csrutil
2025-11-29 18:02:08 +08:00
parent 678915ef3b
commit 4aebc57add
2 changed files with 10 additions and 9 deletions

View File

@@ -807,15 +807,6 @@ void MyMesh::begin(bool has_display) {
radio_set_params(_prefs.freq, _prefs.bw, _prefs.sf, _prefs.cr);
radio_set_tx_power(_prefs.tx_power_dbm);
#if ENV_INCLUDE_GPS == 1
sensors.setSettingValue("gps", _prefs.gps_enabled ? "1" : "0");
if (_prefs.gps_interval > 0) {
char interval_str[12]; // Max: 24 hours = 86400 seconds (5 digits + null)
sprintf(interval_str, "%u", _prefs.gps_interval);
sensors.setSettingValue("gps_interval", interval_str);
}
#endif
}
const char *MyMesh::getNodeName() {