From 666cc86c9eed2dd827af9667b924c49aa1c03980 Mon Sep 17 00:00:00 2001 From: Adrian Scillato <35405447+ascillato@users.noreply.github.com> Date: Thu, 12 Dec 2019 16:32:54 -0300 Subject: [PATCH] Allow to disable SNTP when using TIME --- tasmota/support_rtc.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasmota/support_rtc.ino b/tasmota/support_rtc.ino index 27ef66ec7..890604ee0 100644 --- a/tasmota/support_rtc.ino +++ b/tasmota/support_rtc.ino @@ -460,7 +460,9 @@ void RtcSetTime(uint32_t epoch) if (epoch < START_VALID_TIME) { // 2016-01-01 Rtc.user_time_entry = false; ntp_force_sync = true; + sntp_init(); } else { + sntp_stop(); Rtc.user_time_entry = true; Rtc.utc_time = epoch -1; // Will be corrected by RtcSecond }