Skip to content

Commit d1ac013

Browse files
sago35aykevl
authored andcommitted
main: use ToSlash() to specify program path
1 parent b132b5b commit d1ac013

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ func Flash(pkgName, port string, options *compileopts.Options) error {
263263
if err != nil {
264264
return err
265265
}
266-
args = append(args, "-c", "program "+tmppath+" reset exit")
266+
args = append(args, "-c", "program "+filepath.ToSlash(tmppath)+" reset exit")
267267
cmd := exec.Command("openocd", args...)
268268
cmd.Stdout = os.Stdout
269269
cmd.Stderr = os.Stderr

0 commit comments

Comments
 (0)