GPS start fix when requesting telemetry

APC disabled by default, but compiled in
This commit is contained in:
liquidraver
2026-04-24 22:32:05 +02:00
parent 5015827c02
commit 57aab5f522
6 changed files with 36 additions and 7 deletions
+9
View File
@@ -309,6 +309,15 @@ int RepeaterMesh::handleRequest(ClientInfo* sender, uint32_t sender_timestamp, u
gpos.altitude_mm / 1000.0f);
}
/* Wake GPS / extend acquire window so the next telemetry poll has
* a fresher fix. In repeater mode GPS is normally off between the
* 48h time-sync cycles — this opportunistically rearms acquire
* when someone actually cares about our position. No-op if GPS
* is disabled in prefs. */
if (gps_is_available() && gps_is_enabled()) {
gps_request_fresh_fix();
}
return 4 + lpp.getSize();
}