Skip to content

Commit d53cacd

Browse files
authored
Update RTClock.cpp
1 parent 6c0be70 commit d53cacd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

STM32F1/libraries/RTClock/src/RTClock.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@
8080
}
8181
*/
8282

83-
void RTClock::setTime (time_t time_stamp) {
84-
breakTime(time_stamp, tmm); // time will be broken to tmm
85-
setTime(tmm);
83+
void RTClock::setTime (tm_t & tmm) {
84+
time_t mktm = makeTime(tmm); // time will be make to mktm
85+
setTime(mktm);
8686
//rtc_set_count(time_stamp);
8787
}
8888

0 commit comments

Comments
 (0)