We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c0be70 commit d53cacdCopy full SHA for d53cacd
STM32F1/libraries/RTClock/src/RTClock.cpp
@@ -80,9 +80,9 @@
80
}
81
*/
82
83
- void RTClock::setTime (time_t time_stamp) {
84
- breakTime(time_stamp, tmm); // time will be broken to tmm
85
- setTime(tmm);
+ void RTClock::setTime (tm_t & tmm) {
+ time_t mktm = makeTime(tmm); // time will be make to mktm
+ setTime(mktm);
86
//rtc_set_count(time_stamp);
87
88
0 commit comments