Skip to content

Commit 4fcacd2

Browse files
committed
fix debug strings
1 parent 145fbc0 commit 4fcacd2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

programmer.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ func spProgramLocal(portname string, boardname string, filePath string, commandl
138138
return
139139
}
140140

141+
log.Printf("Received commandline (unresolved):" + commandline)
142+
141143
commandline = strings.Replace(commandline, "{build.path}", filepath.ToSlash(filepath.Dir(filePath)), 1)
142144
commandline = strings.Replace(commandline, "{build.project_name}", strings.TrimSuffix(filepath.Base(filePath), filepath.Ext(filepath.Base(filePath))), 1)
143145
commandline = strings.Replace(commandline, "{serial.port}", portname, 1)
@@ -229,7 +231,7 @@ func spHandlerProgram(flasher string, cmdString []string) {
229231
//var cmdOutput []byte
230232

231233
//h.broadcastSys <- []byte("Start flashing with command " + cmdString)
232-
log.Printf("Flashing with command:" + strings.Join(cmdString, " "))
234+
log.Printf("Flashing with command:" + flasher + extension + " " + strings.Join(cmdString, " "))
233235
mapD := map[string]string{"ProgrammerStatus": "Starting", "Cmd": strings.Join(cmdString, " ")}
234236
mapB, _ := json.Marshal(mapD)
235237
h.broadcastSys <- mapB

0 commit comments

Comments
 (0)