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() {
80
80
err = debugStreamingOpenClient .Send (& dbg.DebugReq {
81
81
DebugReq : & dbg.DebugConfigReq {
82
82
Instance : & dbg.Instance {Id : instance .GetId ()},
83
- Fqbn : "arduino-sadsadasd :samd:arduino_zero_edbg" ,
83
+ Fqbn : "arduino-pippo :samd:arduino_zero_edbg" ,
84
84
SketchPath : os .Args [1 ],
85
85
Port : "none" ,
86
86
}})
87
87
if err != nil {
88
88
log .Fatalf ("Send error: %s\n " , err )
89
89
}
90
90
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 " )})
93
93
if err != nil {
94
94
log .Fatalf ("Send error: %s\n " , err )
95
95
}
@@ -112,10 +112,10 @@ func main() {
112
112
113
113
// When an operation is ongoing you can get its output
114
114
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
+ // }
119
119
}
120
120
121
121
}
You can’t perform that action at this time.
0 commit comments