@@ -120,28 +120,28 @@ func main() {
120120
121121 // Attach a board to a sketch.
122122 // Uncomment if you do have an actual board connected.
123- //log.Println("calling BoardAttach(serial:///dev/ttyACM0)")
124- //callBoardAttach(client, instance)
123+ // log.Println("calling BoardAttach(serial:///dev/ttyACM0)")
124+ // callBoardAttach(client, instance)
125125
126126 // Compile a sketch
127127 log .Println ("calling Compile(arduino:samd:mkr1000, VERBOSE, hello.ino)" )
128128 callCompile (client , instance )
129129
130130 // Upload a sketch
131131 // Uncomment if you do have an actual board connected.
132- //log.Println("calling Upload(arduino:samd:mkr1000, /dev/ttyACM0, VERBOSE, hello.ino)")
133- //callUpload(client, instance)
132+ // log.Println("calling Upload(arduino:samd:mkr1000, /dev/ttyACM0, VERBOSE, hello.ino)")
133+ // callUpload(client, instance)
134134
135135 // Debug a sketch on a board
136136 // Uncomment if you do have an actual board connected via debug port,
137137 // or a board connected to a debugger.
138- //debugClient := dbg.NewDebugClient(conn)
139- //debugStreamingClient, err := debugClient.Debug(context.Background())
140- //if err != nil {
141- // log.Fatalf("debug steraming open error: %s\n", err)
142- //}
143- //log.Println("calling Debug(arduino:samd:mkr1000, hello.ino)")
144- //callDebugger(debugStreamingClient, instance)
138+ // debugClient := dbg.NewDebugClient(conn)
139+ // debugStreamingClient, err := debugClient.Debug(context.Background())
140+ // if err != nil {
141+ // log.Fatalf("debug steraming open error: %s\n", err)
142+ // }
143+ // log.Println("calling Debug(arduino:samd:mkr1000, hello.ino)")
144+ // callDebugger(debugStreamingClient, instance)
145145
146146 // List all boards
147147 log .Println ("calling BoardListAll(mkr)" )
@@ -833,7 +833,7 @@ func callDebugger(debugStreamingOpenClient dbg.Debug_DebugClient, instance *rpc.
833833 }
834834 // Loop and consume the server stream until all the operations are done.
835835 waitForPrompt (debugStreamingOpenClient , "(gdb)" )
836- // wait for gdb to init and show the prompt
836+ // Wait for gdb to init and show the prompt
837837 log .Printf ("Send 'info registers' rcommand" )
838838 err = debugStreamingOpenClient .Send (& dbg.DebugReq {Data : []byte ("info registers\n " )})
839839 if err != nil {
0 commit comments