mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-08 14:12:05 +00:00
Fix displays showing "GPS Not Present" until first lock (#5229)
https://github.com/meshtastic/firmware/pull/5160 introduced a change which made first publication of GPS information take up to 15mins. For that initial period, displays would show "No GPS Present", even if one was detected. This change fixes that bug, triggering publication immediately after a GPS module is detected.
This commit is contained in:
parent
bee474ee54
commit
1bec23b6bb
@ -447,10 +447,12 @@ bool GPS::setup()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
}
|
||||||
|
|
||||||
|
if (gnssModel != GNSS_MODEL_UNKNOWN) {
|
||||||
|
setConnected();
|
||||||
} else {
|
} else {
|
||||||
gnssModel = GNSS_MODEL_UNKNOWN;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gnssModel == GNSS_MODEL_MTK) {
|
if (gnssModel == GNSS_MODEL_MTK) {
|
||||||
@ -1009,6 +1011,7 @@ int32_t GPS::runOnce()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
GPSInitFinished = true;
|
GPSInitFinished = true;
|
||||||
|
publishUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Repeaters have no need for GPS
|
// Repeaters have no need for GPS
|
||||||
|
Loading…
Reference in New Issue
Block a user