From 0a830de2dce4604ccb6263818103bdc941001834 Mon Sep 17 00:00:00 2001 From: Jeff Lehman Date: Sun, 16 Jun 2024 22:10:28 -0500 Subject: [PATCH] FDRS nodes should not send out time notifications --- src/fdrs_time.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fdrs_time.h b/src/fdrs_time.h index 8f37a8c..17e0ea1 100644 --- a/src/fdrs_time.h +++ b/src/fdrs_time.h @@ -280,6 +280,7 @@ void checkDST() { // Periodically send time to ESP-NOW or LoRa nodes associated with this gateway/controller void sendTime() { +#ifdef FDRS_GATEWAY // Nodes do not send out time if(validTime()) { // Only send time if it is valid DBG1("Sending out time"); #if defined(USE_WIFI) || defined(USE_ETHERNET) @@ -288,6 +289,7 @@ void sendTime() { sendTimeLoRa(); sendTimeESPNow(); } +#endif // FDRS_GATEWAY } // time parameter is in Unix Time format UTC time zone