From 92094cd7e3fd07d8c3250174ecfe2f415aa96bb0 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Sat, 21 Nov 2020 17:50:35 +0100 Subject: [PATCH] Zigbee save data to EEPROM only if time is valid --- tasmota/xdrv_23_zigbee_4b_eeprom.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xdrv_23_zigbee_4b_eeprom.ino b/tasmota/xdrv_23_zigbee_4b_eeprom.ino index 6ebdd8214..d8f0bf162 100644 --- a/tasmota/xdrv_23_zigbee_4b_eeprom.ino +++ b/tasmota/xdrv_23_zigbee_4b_eeprom.ino @@ -203,7 +203,7 @@ class SBuffer hibernateDeviceData(const struct Z_Device & device, bool mqtt = fa * \*********************************************************************************************/ void hibernateAllData(void) { - + if (Rtc.utc_time < START_VALID_TIME) { return; } if (!zigbee.eeprom_ready) { return; } ZFS_Write_File write_data(ZIGB_DATA2);