mirror of https://github.com/arendst/Tasmota.git
Allow to disable SNTP when using TIME <epoch>
This commit is contained in:
parent
04a952df99
commit
666cc86c9e
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue