fix compilation

This commit is contained in:
Stephan Hadinger 2022-10-02 21:13:32 +02:00
parent b4aca5a3f3
commit 58c0ca4076
1 changed files with 3 additions and 3 deletions

View File

@ -358,11 +358,11 @@ bool loadZigbeeDevices(void) {
#ifdef USE_ZIGBEE_EEPROM
if (zigbee.eeprom_ready) {
f.init(ZIGB_NAME4); // try v4 first
if (!f.valid) {
if (!f.valid()) {
f.init(ZIGB_NAME2); // else try v2
if (f.valid) { file_version = 2; } // v2 found
if (f.valid()) { file_version = 2; } // v2 found
}
if (f.valid) {
if (f.valid()) {
storage_class = PSTR("EEPROM");
}
}