Log
Dependents: oldheating gps motorhome heating
Diff: log.cpp
- Revision:
- 1:4d81afe3859e
- Parent:
- 0:9907e344c82a
- Child:
- 2:ee4ec2d72525
--- a/log.cpp Mon Dec 12 15:44:51 2016 +0000 +++ b/log.cpp Wed Feb 01 07:41:22 2017 +0000 @@ -1,5 +1,5 @@ #include "mbed.h" -#include "rtc.h" +#include "time.h" #define LOG_FILE "/local/log.txt" LocalFileSystem local("local"); @@ -128,7 +128,7 @@ void LogTime() { struct tm tm; - RtcGetTmUtc(&tm); + TimeToTmUtc(time(NULL), &tm); pushuint4(tm.tm_year + 1900); LogPush('-');