mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-26 22:33:24 +00:00
This commit is contained in:
parent
4f906ae3ae
commit
62b310ac5c
@ -209,13 +209,13 @@ meshtastic_MeshPacket *PositionModule::allocReply()
|
|||||||
p.ground_speed = localPosition.ground_speed;
|
p.ground_speed = localPosition.ground_speed;
|
||||||
|
|
||||||
// Strip out any time information before sending packets to other nodes - to keep the wire size small (and because other
|
// Strip out any time information before sending packets to other nodes - to keep the wire size small (and because other
|
||||||
// nodes shouldn't trust it anyways) Note: we allow a device with a local GPS to include the time, so that gpsless
|
// nodes shouldn't trust it anyways) Note: we allow a device with a local GPS or NTP to include the time, so that devices
|
||||||
// devices can get time.
|
// without can get time.
|
||||||
if (getRTCQuality() < RTCQualityGPS) {
|
if (getRTCQuality() < RTCQualityNTP) {
|
||||||
LOG_INFO("Stripping time %u from position send\n", p.time);
|
LOG_INFO("Stripping time %u from position send\n", p.time);
|
||||||
p.time = 0;
|
p.time = 0;
|
||||||
} else {
|
} else {
|
||||||
p.time = getValidTime(RTCQualityGPS);
|
p.time = getValidTime(RTCQualityNTP);
|
||||||
LOG_INFO("Providing time to mesh %u\n", p.time);
|
LOG_INFO("Providing time to mesh %u\n", p.time);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user