Skip to content

Commit

Permalink
adding reset
Browse files Browse the repository at this point in the history
  • Loading branch information
fedyfausto committed May 12, 2022
1 parent ff226db commit 2548657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robot/robot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2548657

Please sign in to comment.