We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b615be commit f20aeabCopy full SHA for f20aeab
DS3231_RealtimeClock/DS3231_RealtimeClock.cpp
@@ -21,12 +21,10 @@ void DS3231_RealtimeClock::begin(bool callWireBegin) {
21
// rtc
22
if (callWireBegin) {
23
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);
+ }
+ Wire.beginTransmission(DS3231_ADDRESS);
+ if (Wire.endTransmission() != 0) {
+ Log.warning(F("Initializing DS3231... Error!" CR));
30
}
31
32
if (_rtc->lostPower()) {
0 commit comments