cli command "set rtc" added
syntax: set rtc <year> <month> <day> <hour> <minute> <second>"
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user