binary-format supports uf2, nrf-dfu

This commit is contained in:
Li Jie
2025-08-23 10:24:18 +08:00
parent 508b23a584
commit e40bdc196b
12 changed files with 437 additions and 10 deletions

View File

@@ -7,6 +7,10 @@ import "strings"
func BinaryExt(binaryFormat string) string {
if strings.HasPrefix(binaryFormat, "esp") {
return ".bin"
} else if strings.HasPrefix(binaryFormat, "uf2") {
return ".uf2"
} else if strings.HasPrefix(binaryFormat, "nrf-dfu") {
return ".zip"
}
return ""
}