cmdline: remove obsolete comment
[protos/xbee-avr.git] / commands.c
index ddce65f..c827001 100644 (file)
@@ -133,7 +133,7 @@ static void range_cb(struct callout_mgr *cm,
 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;
@@ -142,7 +142,7 @@ static int8_t send_msg_cb(int8_t retcode, void *frame, unsigned len,
                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;
        }
@@ -2053,7 +2053,6 @@ static void cmd_eeprom_add_parsed(void *parsed_result,
        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)