File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -80,16 +80,16 @@ func main() {
8080 err = debugStreamingOpenClient .Send (& dbg.DebugReq {
8181 DebugReq : & dbg.DebugConfigReq {
8282 Instance : & dbg.Instance {Id : instance .GetId ()},
83- Fqbn : "arduino-sadsadasd :samd:arduino_zero_edbg" ,
83+ Fqbn : "arduino-pippo :samd:arduino_zero_edbg" ,
8484 SketchPath : os .Args [1 ],
8585 Port : "none" ,
8686 }})
8787 if err != nil {
8888 log .Fatalf ("Send error: %s\n " , err )
8989 }
9090 log .Println ("calling StreamingOpenReq_DebugReq" )
91-
92- err = debugStreamingOpenClient .Send (& dbg.DebugReq {Data : []byte ("\n " )})
91+ time . Sleep ( time . Second * 3 )
92+ err = debugStreamingOpenClient .Send (& dbg.DebugReq {Data : []byte ("info registers \n " )})
9393 if err != nil {
9494 log .Fatalf ("Send error: %s\n " , err )
9595 }
@@ -112,10 +112,10 @@ func main() {
112112
113113 // When an operation is ongoing you can get its output
114114 if resp := compResp .GetData (); resp != nil {
115- fmt .Printf (">>%s<< " , resp )
116- if string (resp ) == "(gdb) " {
117- break
118- }
115+ fmt .Printf ("%s " , resp )
116+ // if string(resp) == "(gdb) " {
117+ // break
118+ // }
119119 }
120120
121121 }
You can’t perform that action at this time.
0 commit comments