mirror of
https://github.com/esphome/esphome.git
synced 2025-09-03 11:52:20 +01:00
Mmc5603 fix for devices that don't retrieve chip_id (#8959)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
@@ -39,7 +39,7 @@ void MMC5603Component::setup() {
|
||||
return;
|
||||
}
|
||||
|
||||
if (id != MMC56X3_CHIP_ID) {
|
||||
if (id != 0 && id != MMC56X3_CHIP_ID) { // ID is not reported correctly by all chips, 0 on some chips
|
||||
ESP_LOGCONFIG(TAG, "Chip Wrong");
|
||||
this->error_code_ = ID_REGISTERS;
|
||||
this->mark_failed();
|
||||
|
Reference in New Issue
Block a user