Skip to content

Commit 2548657

Browse files
committed
adding reset
1 parent ff226db commit 2548657

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

robot/robot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ func (robot *Robot) ToggleStarter(enable bool) error {
377377

378378
func (robot *Robot) ResetBoard() error {
379379

380-
_, err := exec.Command("openocd", "-f board/st_nucleo_f4.cfg -c init -c reset -c exit").Output()
380+
_, err := exec.Command("openocd", "-f", "board/st_nucleo_f4.cfg", "-c", "init", "-c", "reset", "-c", "exit").Output()
381381
log.Printf("[%s] %s", utilities.CreateColorString("ROBOT", color.FgHiCyan), "Board Reset")
382382
if err != nil {
383383
log.Printf("[%s] %s", utilities.CreateColorString("ROBOT", color.FgHiRed), err)

0 commit comments

Comments
 (0)