mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-01 17:56:12 +00:00
Merge pull request #2516 from oltaco/disable-ds3231-probe
Add option to disable DS3231 RTC probe
This commit is contained in:
@@ -27,9 +27,11 @@ bool AutoDiscoverRTCClock::i2c_probe(TwoWire& wire, uint8_t addr) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void AutoDiscoverRTCClock::begin(TwoWire& wire) {
|
void AutoDiscoverRTCClock::begin(TwoWire& wire) {
|
||||||
|
#if !defined(DISABLE_DS3231_PROBE)
|
||||||
if (i2c_probe(wire, DS3231_ADDRESS)) {
|
if (i2c_probe(wire, DS3231_ADDRESS)) {
|
||||||
ds3231_success = rtc_3231.begin(&wire);
|
ds3231_success = rtc_3231.begin(&wire);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (i2c_probe(wire, RV3028_ADDRESS)) {
|
if (i2c_probe(wire, RV3028_ADDRESS)) {
|
||||||
rtc_rv3028.initI2C(wire);
|
rtc_rv3028.initI2C(wire);
|
||||||
|
|||||||
Reference in New Issue
Block a user