Untitled

Pasted by Anonymous on Tue May 1 20:42:52 2018 UTC as Text only
(gdb) finish
Run till exit from #0  0x08004196 in pb_encode (stream=stream@entry=0x20017f04, fields=<optimized out>, src_struct=src_struct@entry=0x20000300 <usb_cmd+24>) at nanopb/pb_encode.c:510
0x0800291c in USB_CMD::send_res (this=0x200002e8 <usb_cmd>) at cmd.h:36
36				if(!pb_encode(&stream, Response_fields, &cmd)) {
Value returned is $11 = false
(gdb) p stream
$12 = {
  callback = 0x8003bdd <buf_write>, 
  state = 0x20017f59, 
  max_size = 64, 
  bytes_written = 1, 
  errmsg = 0x80049c4 "array max size exceeded"
}
(gdb) p res
$13 = {
  which_res = 1 '\001', 
  res = {
    pong = {
      payload = 0
    }, 
    current_position = {
      pos_count = 0 '\000', 
      pos = {0, 0, 0, 0, 0, 0}
    }
  }
}