mirror of https://github.com/arendst/Tasmota.git
Merge pull request #13579 from s-hadinger/ezsp32_wire
EZSP32 prevent crash on IDF4.4
This commit is contained in:
commit
4e4206af30
|
@ -108,12 +108,14 @@ void ZigbeeInit(void)
|
|||
|
||||
#ifdef USE_ZIGBEE_EZSP
|
||||
// Check the I2C EEprom
|
||||
if (TasmotaGlobal.i2c_enabled) {
|
||||
Wire.beginTransmission(USE_ZIGBEE_ZBBRIDGE_EEPROM);
|
||||
uint8_t error = Wire.endTransmission();
|
||||
if (0 == error) {
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue