main: use ToSlash() to specify program path

This commit is contained in:
sago35
2020-08-17 20:47:24 +09:00
committed by Ayke
parent b132b5bc60
commit d1ac0138e6
+1 -1
View File
@@ -263,7 +263,7 @@ func Flash(pkgName, port string, options *compileopts.Options) error {
if err != nil {
return err
}
args = append(args, "-c", "program "+tmppath+" reset exit")
args = append(args, "-c", "program "+filepath.ToSlash(tmppath)+" reset exit")
cmd := exec.Command("openocd", args...)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr