mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 10:46:31 +00:00
Merge pull request #13579 from s-hadinger/ezsp32_wire
EZSP32 prevent crash on IDF4.4
This commit is contained in:
commit
4e4206af30
@ -108,11 +108,13 @@ void ZigbeeInit(void)
|
|||||||
|
|
||||||
#ifdef USE_ZIGBEE_EZSP
|
#ifdef USE_ZIGBEE_EZSP
|
||||||
// Check the I2C EEprom
|
// Check the I2C EEprom
|
||||||
Wire.beginTransmission(USE_ZIGBEE_ZBBRIDGE_EEPROM);
|
if (TasmotaGlobal.i2c_enabled) {
|
||||||
uint8_t error = Wire.endTransmission();
|
Wire.beginTransmission(USE_ZIGBEE_ZBBRIDGE_EEPROM);
|
||||||
if (0 == error) {
|
uint8_t error = Wire.endTransmission();
|
||||||
AddLog(LOG_LEVEL_INFO, PSTR(D_LOG_ZIGBEE D_ZIGBEE_EEPROM_FOUND_AT_ADDRESS " 0x%02X"), USE_ZIGBEE_ZBBRIDGE_EEPROM);
|
if (0 == error) {
|
||||||
zigbee.eeprom_present = true;
|
AddLog(LOG_LEVEL_INFO, PSTR(D_LOG_ZIGBEE D_ZIGBEE_EEPROM_FOUND_AT_ADDRESS " 0x%02X"), USE_ZIGBEE_ZBBRIDGE_EEPROM);
|
||||||
|
zigbee.eeprom_present = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user