Skip to content

Commit a3a069a

Browse files
authored
Fix undefined behavior in RTC.begin()
Resolves compilers generating the wrong assembly per arduino#88
1 parent 0e9f4df commit a3a069a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/RTC/src/RTC.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,7 @@ bool RTClock::begin() {
610610
else {
611611
is_initialized = false;
612612
}
613+
return is_initialized;
613614
}
614615

615616
bool RTClock::getTime(RTCTime &t) {

0 commit comments

Comments
 (0)