support flashing pca10059 from windows

This commit is contained in:
Olaf Flebbe
2021-06-03 14:27:33 +02:00
committed by Ron Evans
parent 9912dd6db1
commit 1f5e4e79aa
5 changed files with 48 additions and 1 deletions
+2
View File
@@ -275,6 +275,8 @@ func Flash(pkgName, port string, options *compileopts.Options) error {
fileExt = ".bin"
case strings.Contains(config.Target.FlashCommand, "{uf2}"):
fileExt = ".uf2"
case strings.Contains(config.Target.FlashCommand, "{zip}"):
fileExt = ".zip"
default:
return errors.New("invalid target file - did you forget the {hex} token in the 'flash-command' section?")
}