mirror of https://github.com/arendst/Tasmota.git
Merge pull request #9937 from s-hadinger/zigbee_eeprom_valid_time
Zigbee save data to EEPROM only if time is valid
This commit is contained in:
commit
83ed3a526d
|
@ -206,6 +206,7 @@ class SBuffer hibernateDeviceData(const struct Z_Device & device, bool mqtt = fa
|
|||
\*********************************************************************************************/
|
||||
void hibernateAllData(void) {
|
||||
#ifdef USE_ZIGBEE_EZSP
|
||||
if (Rtc.utc_time < START_VALID_TIME) { return; }
|
||||
if (!zigbee.eeprom_ready) { return; }
|
||||
|
||||
ZFS_Write_File write_data(ZIGB_DATA2);
|
||||
|
|
Loading…
Reference in New Issue