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:
Jeremy Brown
2025-07-02 02:48:42 +00:00
committed by GitHub
co-authored by Jesse Hills
parent 5fa9d22c5d
commit 095acce3e2
+1 -1
View File
@@ -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();