From 254865750a4cfe01e9995404843385b7f3b239a7 Mon Sep 17 00:00:00 2001 From: Federico Fausto Santoro Date: Thu, 12 May 2022 19:20:00 +0200 Subject: [PATCH] adding reset --- robot/robot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/robot/robot.go b/robot/robot.go index df4c1c6..2308878 100644 --- a/robot/robot.go +++ b/robot/robot.go @@ -377,7 +377,7 @@ func (robot *Robot) ToggleStarter(enable bool) error { func (robot *Robot) ResetBoard() error { - _, err := exec.Command("openocd", "-f board/st_nucleo_f4.cfg -c init -c reset -c exit").Output() + _, err := exec.Command("openocd", "-f", "board/st_nucleo_f4.cfg", "-c", "init", "-c", "reset", "-c", "exit").Output() log.Printf("[%s] %s", utilities.CreateColorString("ROBOT", color.FgHiCyan), "Board Reset") if err != nil { log.Printf("[%s] %s", utilities.CreateColorString("ROBOT", color.FgHiRed), err)