Skip to content

Commit b90aaee

Browse files
committed
fix rp2040 compiler error output
1 parent a0d1866 commit b90aaee

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/components/i2c/hardware.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,19 +229,22 @@ bool I2cHardware::ScanBus(wippersnapper_i2c_I2cBusScanned *scan_results) {
229229
} else if (endTransmissionRC == 5) {
230230
WS_DEBUG_PRINTLN("[i2c] Did not find device: Bus timed out!");
231231
continue;
232+
}
232233
#endif // ARDUINO_ARCH_ESP32
233-
} else {
234+
else {
234235
WS_DEBUG_PRINTLN(
235236
"[i2c] Did not find device: Unknown bus error has occured!");
236237
continue;
237238
}
238239
}
239240

240-
/* #ifndef ARDUINO_ARCH_ESP32
241+
/*
242+
#ifndef ARDUINO_ARCH_ESP32
241243
// re-enable WipperSnapper SAMD WDT global timeout
242244
WS.enableWDT(WS_WDT_TIMEOUT);
243245
WS.feedWDT();
244-
#endif */
246+
#endif
247+
*/
245248
return true; // TODO: Change this!
246249
}
247250

0 commit comments

Comments
 (0)