Add support for Luckfox PicoKVM

Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
This commit is contained in:
luckfox-eng29
2025-08-07 14:26:01 +08:00
parent 3e7d8fb0f5
commit 8fbd6bcf0d
114 changed files with 4676 additions and 3270 deletions

View File

@@ -4,7 +4,7 @@ import (
"strconv"
"time"
"github.com/jetkvm/kvm/internal/timesync"
"kvm/internal/timesync"
)
var (
@@ -51,3 +51,11 @@ func initTimeSync() {
},
})
}
func initTimeZone() {
LoadConfig()
_, err := CallDisplayCtrlAction("set_timezone", map[string]interface{}{"timezone": config.TimeZone})
if err != nil {
timesyncLogger.Error().Err(err).Msg("failed to set time zone")
}
}