static int8_t send_msg_cb(int8_t retcode, void *frame, unsigned len,
void *arg)
{
- struct xbee_recv_hdr *recvframe = frame;
+ struct xbee_xmit_status_hdr *recvframe = frame;
uint8_t *done = arg;
*done = 1;
return retcode;
}
if (retcode == XBEE_USER_RETCODE_BAD_FRAME ||
- len < sizeof(*recvframe)) {
+ len != sizeof(*recvframe)) {
printf_P(PSTR("invalid frame\r\n"));
return XBEE_USER_RETCODE_BAD_FRAME;
}
rdline_init(&rdl, cmdline_write_char, NULL, NULL);
rdline_newline(&rdl, "> ");
- /* XXX bad: we should not block as we do not serve callout */
while (1) {
c = cmdline_dev_recv(NULL);
if (c < 0)