Skip to content

Commit be8f206

Browse files
committed
Add onewire debug info if no sensor found on bus
1 parent 38dfd1f commit be8f206

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver_DS2484.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ class WipperSnapper_I2C_Driver_DS2484 : public WipperSnapper_I2C_Driver {
8989
if (_rom[0] == DS18B20_FAMILY_CODE) {
9090
found_device = true;
9191
}
92+
else {
93+
WS_DEBUG_PRINT("Found unwanted device with family code: 0x");
94+
WS_DEBUG_PRINTHEX(_rom[0]);
95+
WS_DEBUG_PRINTLN(" expected 0x28"); // DS18B20_FAMILY_CODE
96+
}
9297
}
9398

9499
if (!found_device) {

0 commit comments

Comments
 (0)