Update RTClock.cpp

This commit is contained in:
csnol 2017-08-30 23:37:41 +08:00 committed by GitHub
parent 6c0be70f2e
commit d53cacdb1e
1 changed files with 3 additions and 3 deletions

View File

@ -80,9 +80,9 @@
}
*/
void RTClock::setTime (time_t time_stamp) {
breakTime(time_stamp, tmm); // time will be broken to tmm
setTime(tmm);
void RTClock::setTime (tm_t & tmm) {
time_t mktm = makeTime(tmm); // time will be make to mktm
setTime(mktm);
//rtc_set_count(time_stamp);
}