fix xbee_user after rework (e39c5d5)
[protos/xbee-avr.git] / commands.c
index b64dfb1..68c0c6b 100644 (file)
@@ -175,9 +175,9 @@ static int8_t dump_xbee_atresp_cb(int8_t retcode, void *frame, unsigned len,
        memcpy(atcmd_str, &recvframe->cmd, 2);
        atcmd_str[2] = '\0';
 
+       atresp_to_str(buf, sizeof(buf), frame, len);
        len -= sizeof(*recvframe);
-       atresp_to_str(buf, sizeof(buf), frame);
-       NOTICE(E_USER_XBEE, "status ok, len=%d, %s", len, buf);
+       printf_P(PSTR("status ok, len=%d, %s\n"), len, buf);
        return XBEE_USER_RETCODE_OK;
 }
 
@@ -667,7 +667,7 @@ static void cmd_send_hello_parsed(void *parsed_result, void *use_neigh)
                if (diff < res->period)
                        continue;
 
-               rc_proto_send_hello(addr, res->data, strlen(res->data));
+               rc_proto_send_hello(addr, res->data, strlen(res->data), -1);
                next += res->period;
                res->count--;
        }