Skip to content

Commit f20aeab

Browse files
stick to 1.13.0
1 parent 1b615be commit f20aeab

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

DS3231_RealtimeClock/DS3231_RealtimeClock.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@ void DS3231_RealtimeClock::begin(bool callWireBegin) {
2121
// rtc
2222
if (callWireBegin) {
2323
Wire.begin(_sdaPin, _sclPin);
24-
Wire.beginTransmission(DS3231_ADDRESS);
25-
if (Wire.endTransmission() != 0) {
26-
Log.warning(F("Initializing DS3231... Error!" CR));
27-
}
28-
} else {
29-
_rtc->begin(&Wire);
24+
}
25+
Wire.beginTransmission(DS3231_ADDRESS);
26+
if (Wire.endTransmission() != 0) {
27+
Log.warning(F("Initializing DS3231... Error!" CR));
3028
}
3129

3230
if (_rtc->lostPower()) {

0 commit comments

Comments
 (0)