Skip to content

Commit 7d96e20

Browse files
force NTP sync every 30 sec
Without RTC and with unstable power supply I need to force ntpsync every 30 mins to avoid missing watering
1 parent 12ae6f8 commit 7d96e20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void remote_http_callback(char*);
5353

5454
// Small variations have been added to the timing values below
5555
// to minimize conflicting events
56-
#define NTP_SYNC_INTERVAL 86413L // NYP sync interval, in units of seconds
56+
#define NTP_SYNC_INTERVAL 1440L // NYP sync interval, every 30 mins, expressed in seconds
5757
#define RTC_SYNC_INTERVAL 3607 // RTC sync interval, 3600 secs
5858
#define CHECK_NETWORK_INTERVAL 601 // Network checking timeout, 10 minutes
5959
#define CHECK_WEATHER_TIMEOUT 7207L // Weather check interval: 2 hours

0 commit comments

Comments
 (0)