mirror of
https://github.com/esphome/esphome.git
synced 2025-07-29 14:46:40 +00: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:
parent
5fa9d22c5d
commit
095acce3e2
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user