supports binary-format, only esp* supported for now
This commit is contained in:
12
internal/firmware/ext.go
Normal file
12
internal/firmware/ext.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package firmware
|
||||
|
||||
import "strings"
|
||||
|
||||
// BinaryExt returns the binary file extension based on the binary format
|
||||
// Returns ".bin" for ESP-based formats, "" for others
|
||||
func BinaryExt(binaryFormat string) string {
|
||||
if strings.HasPrefix(binaryFormat, "esp") {
|
||||
return ".bin"
|
||||
}
|
||||
return ""
|
||||
}
|
||||
Reference in New Issue
Block a user