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:
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_min = minute;
|
||||
t.tm_sec = second;
|
||||
g_rtcTime = gmktime(&t); // update local timestamp and get wday calculated
|
||||
rtcSetTime(&t);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue