fix: hwReboot delay should be delayMs

This commit is contained in:
Siyuan 2025-11-18 15:49:09 +00:00
parent 013e73b371
commit f580631f0a
1 changed files with 1 additions and 1 deletions

2
hw.go
View File

@ -32,7 +32,7 @@ func extractSerialNumber() (string, error) {
}
func hwReboot(force bool, postRebootAction *ota.PostRebootAction, delay time.Duration) error {
logger.Info().Dur("delay", delay).Msg("reboot requested")
logger.Info().Dur("delayMs", delay).Msg("reboot requested")
writeJSONRPCEvent("willReboot", postRebootAction, currentSession)
time.Sleep(1 * time.Second) // Wait for the JSONRPCEvent to be sent