For sensor firmware, request for GPS sync in GPS PowerSaving upon telemetry request

This commit is contained in:
Kevin Le
2026-09-09 17:29:59 +07:00
parent e96495327a
commit 5b62cc9d7c
+3
View File
@@ -179,6 +179,9 @@ uint8_t SensorMesh::handleRequest(uint8_t perms, uint32_t sender_timestamp, uint
telemetry.reset();
telemetry.addVoltage(TELEM_CHANNEL_SELF, (float)board.getBattMilliVolts() / 1000.0f);
// query other sensors -- target specific
if (sensors.getLocationProvider() != NULL && sensors.getLocationProvider()->isPowerSavingEnabled()) {
sensors.getLocationProvider()->syncTime(); // Request for GPS sync if GPS is in PowerSaving
}
sensors.querySensors(0xFF & perm_mask, telemetry); // allow all telemetry permissions for admin or guest
// TODO: let requester know permissions they have: telemetry.addPresence(TELEM_CHANNEL_SELF, perms);