Skip to content

Commit

Permalink
some chips seem to read id 0x00 :/ cc @FoamyGuy
Browse files Browse the repository at this point in the history
  • Loading branch information
ladyada committed Dec 2, 2024
1 parent c128e44 commit bdc67b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Adafruit_MMC56x3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ bool Adafruit_MMC5603::begin(uint8_t i2c_address, TwoWire *wire) {
Adafruit_BusIO_Register(i2c_dev, MMC56X3_PRODUCT_ID);

// make sure we're talking to the right chip
if (chip_id.read() != MMC56X3_CHIP_ID) {
uint8_t id = chip_id.read();
if ((id != MMC56X3_CHIP_ID) && (id != 0x0)) {
// No MMC56X3 detected ... return false
return false;
}
Expand Down

0 comments on commit bdc67b3

Please sign in to comment.