mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-30 06:06:36 +00:00
Zigbee save data to EEPROM only if time is valid
This commit is contained in:
parent
846c24fb5a
commit
92094cd7e3
@ -203,7 +203,7 @@ class SBuffer hibernateDeviceData(const struct Z_Device & device, bool mqtt = fa
|
|||||||
*
|
*
|
||||||
\*********************************************************************************************/
|
\*********************************************************************************************/
|
||||||
void hibernateAllData(void) {
|
void hibernateAllData(void) {
|
||||||
|
if (Rtc.utc_time < START_VALID_TIME) { return; }
|
||||||
if (!zigbee.eeprom_ready) { return; }
|
if (!zigbee.eeprom_ready) { return; }
|
||||||
|
|
||||||
ZFS_Write_File write_data(ZIGB_DATA2);
|
ZFS_Write_File write_data(ZIGB_DATA2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user