Skip to content

Commit e7ea2fc

Browse files
authored
Merge pull request #2516 from oltaco/disable-ds3231-probe
Add option to disable DS3231 RTC probe
2 parents a3e1930 + e7e97ec commit e7ea2fc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/helpers/AutoDiscoverRTCClock.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ bool AutoDiscoverRTCClock::i2c_probe(TwoWire& wire, uint8_t addr) {
2727
}
2828

2929
void AutoDiscoverRTCClock::begin(TwoWire& wire) {
30+
#if !defined(DISABLE_DS3231_PROBE)
3031
if (i2c_probe(wire, DS3231_ADDRESS)) {
3132
ds3231_success = rtc_3231.begin(&wire);
3233
}
34+
#endif
3335

3436
if (i2c_probe(wire, RV3028_ADDRESS)) {
3537
rtc_rv3028.initI2C(wire);

0 commit comments

Comments
 (0)