Build epoch in info, flash-status command, cmake version embedding

This commit is contained in:
Ian Gulliver
2026-04-12 09:02:31 +09:00
parent 21c7900444
commit a41ee70a3c
9 changed files with 85 additions and 5 deletions

View File

@@ -33,6 +33,7 @@ type ResponseInfo struct {
IP [4]byte
FirmwareName string
Boot BootReason
BuildEpoch uint32
}
type RequestLog struct{}
@@ -61,6 +62,12 @@ type ResponseFlashWrite struct{}
type RequestReboot struct{}
type ResponseReboot struct{}
type RequestFlashStatus struct{}
type ResponseFlashStatus struct {
BootPartition int8
BootType uint8
}
type RequestListTests struct{}
type ResponseListTests struct {
Names []string
@@ -105,6 +112,8 @@ func init() {
msgpack.RegisterExt(11, (*ResponseFlashWrite)(nil))
msgpack.RegisterExt(12, (*RequestReboot)(nil))
msgpack.RegisterExt(13, (*ResponseReboot)(nil))
msgpack.RegisterExt(14, (*RequestFlashStatus)(nil))
msgpack.RegisterExt(15, (*ResponseFlashStatus)(nil))
msgpack.RegisterExt(125, (*RequestListTests)(nil))
msgpack.RegisterExt(124, (*ResponseListTests)(nil))
msgpack.RegisterExt(127, (*RequestTest)(nil))