Merge remote-tracking branch 'origin/dev'
Konflikty: - ESP32Board.h: upstream obnovuje čas z RTC backupu přes všechny resety; záchytná hodnota je teď novější z FIRMWARE_BUILD_EPOCH (náš stamping) a RTC_TIME_MIN. - t1000-e: upstream sloučil sleep_gps() do stop_gps() (drží VRTC + Airoha RTC backup sleep) ⇒ gps duty používá stop_gps(), sleep_gps() zrušen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
f79ea79a13
23 files changed
+164
-120
No files matched your search
@@ -844,14 +844,18 @@ void EnvironmentSensorManager::initBasicGPS() {
|
||||
MESH_DEBUG_PRINTLN("No GPS wake/reset pin found for this board. Continuing on...");
|
||||
#endif
|
||||
|
||||
// Give GPS a moment to power up and send data
|
||||
delay(1000);
|
||||
|
||||
// We'll consider GPS detected if we see any data on Serial1
|
||||
// Give the GPS time to power up and emit its first NMEA sentence. Cold-start
|
||||
// modules can take several seconds, so poll for up to ~5s instead of checking
|
||||
// once after a fixed 1s delay -- returning as soon as any data appears, so
|
||||
// fast modules add no boot delay (issue #2258).
|
||||
#ifdef ENV_SKIP_GPS_DETECT
|
||||
gps_detected = true;
|
||||
#else
|
||||
gps_detected = (Serial1.available() > 0);
|
||||
gps_detected = false;
|
||||
for (int i = 0; i < 20 && !gps_detected; i++) {
|
||||
delay(250);
|
||||
gps_detected = (Serial1.available() > 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (gps_detected) {
|
||||
|
||||
Reference in new issue
Block a user