mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 00:05:17 +03:00
cli command "set rtc" added
syntax: set rtc <year> <month> <day> <hour> <minute> <second>"
This commit is contained in:
parent
8942115f33
commit
cf4fa51019
1 changed files with 1 additions and 0 deletions
|
@ -238,6 +238,7 @@ int cliSet(const char ** argv)
|
||||||
t.tm_hour = hour;
|
t.tm_hour = hour;
|
||||||
t.tm_min = minute;
|
t.tm_min = minute;
|
||||||
t.tm_sec = second;
|
t.tm_sec = second;
|
||||||
|
g_rtcTime = gmktime(&t); // update local timestamp and get wday calculated
|
||||||
rtcSetTime(&t);
|
rtcSetTime(&t);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue