FDRS nodes should not send out time notifications

This commit is contained in:
Jeff Lehman 2024-06-16 22:10:28 -05:00
parent 7ea7c46e69
commit 0a830de2dc

View File

@ -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