From 028b25cfe88327164b44dec5617ca57b3d556e67 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Fri, 14 Oct 2022 19:12:55 -0500 Subject: [PATCH] Change RTCQuality acceptance criteria (#1797) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Thomas Göttgens --- src/gps/RTC.h | 2 +- src/modules/PositionModule.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gps/RTC.h b/src/gps/RTC.h index f2df3c757..527b31f46 100644 --- a/src/gps/RTC.h +++ b/src/gps/RTC.h @@ -16,7 +16,7 @@ enum RTCQuality { RTCQualityFromNet = 2, /// Our time is based on NTP - RTCQualityNTP= 3, + RTCQualityNTP = 3, /// Our time is based on our own GPS RTCQualityGPS = 4 diff --git a/src/modules/PositionModule.cpp b/src/modules/PositionModule.cpp index 9e4a44679..5159de278 100644 --- a/src/modules/PositionModule.cpp +++ b/src/modules/PositionModule.cpp @@ -108,7 +108,7 @@ MeshPacket *PositionModule::allocReply() // 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 // devices can get time. - if (getRTCQuality() < RTCQualityGPS) { + if (getRTCQuality() < RTCQualityDevice) { DEBUG_MSG("Stripping time %u from position send\n", p.time); p.time = 0; } else