X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=commands.c;h=68c0c6bf150cfbedbe7d47c3037ced5b22ead467;hb=bdfd2cee44033c3fd22d3091de815f235271e765;hp=b64dfb1cf60580ac04715b1b7b46e7ff331bc363;hpb=6ee8078b5fe7f8310961a072a5d9637230f2ded8;p=protos%2Fxbee-avr.git diff --git a/commands.c b/commands.c index b64dfb1..68c0c6b 100644 --- a/commands.c +++ b/commands.c @@ -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--; }