Zigbee save data to EEPROM only if time is valid

This commit is contained in:
Stephan Hadinger 2020-11-21 17:50:35 +01:00
parent 846c24fb5a
commit 92094cd7e3

View File

@ -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);