Skip to content

Commit 19d0904

Browse files
committed
Check USE_FASTCHG_TO_KICK_WATCHDOG to verify which method is available in the Nicla_System lib
1 parent 2d547be commit 19d0904

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Arduino_BHY2.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,13 @@ void Arduino_BHY2::pingI2C() {
2929
int currTime = millis();
3030
if ((currTime - _pingTime) > 30000) {
3131
_pingTime = currTime;
32+
#ifdef USE_FASTCHG_TO_KICK_WATCHDOG
3233
//Read charger reg
3334
nicla::checkChgReg();
35+
#else
36+
//Read LDO reg
37+
nicla::readLDOreg();
38+
#endif
3439
}
3540
}
3641

0 commit comments

Comments
 (0)