1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-21 15:25:17 +03:00

cli command "set rtc" added

syntax: set rtc <year> <month> <day> <hour> <minute> <second>"
This commit is contained in:
Bertrand Songis 2015-12-16 22:27:09 +01:00
parent 8942115f33
commit cf4fa51019

View file

@ -238,6 +238,7 @@ int cliSet(const char ** argv)
t.tm_hour = hour;
t.tm_min = minute;
t.tm_sec = second;
g_rtcTime = gmktime(&t); // update local timestamp and get wday calculated
rtcSetTime(&t);
}
else {