Watchdog timer, boot reason tracking, net_poll frame limit, reboot/picoboot CLI commands

This commit is contained in:
Ian Gulliver
2026-04-12 08:27:21 +09:00
parent 6c3e0757f9
commit 21c7900444
7 changed files with 25 additions and 9 deletions

View File

@@ -9,8 +9,9 @@ type RequestInfo struct{}
type BootReason uint8
const (
BootCold BootReason = 0
BootReboot BootReason = 1
BootCold BootReason = 0
BootReboot BootReason = 1
BootWatchdog BootReason = 2
)
func (b BootReason) String() string {
@@ -19,6 +20,8 @@ func (b BootReason) String() string {
return "cold"
case BootReboot:
return "reboot"
case BootWatchdog:
return "watchdog"
default:
return "unknown"
}