Ironed out tons of stuff on the webserver

Logging, time sync, collapsible menus, oh my!
This commit is contained in:
Thaddeus Hughes
2025-12-29 22:21:43 -06:00
parent 2ac5d30490
commit 012d28ae14
12 changed files with 620 additions and 817 deletions

View File

@@ -103,6 +103,13 @@ int64_t system_rtc_get_raw_time(void)
return (int64_t)tv.tv_sec;
}
void system_rtc_set_raw_time(int64_t tv_sec)
{
rtc_set = true;
settimeofday(&(struct timeval){.tv_sec = tv_sec, .tv_usec=0}, NULL);
}
uint64_t rtc_time_ms(void)
{
struct timeval tv;