From: Fabrice Desclaux Date: Mon, 20 Feb 2012 22:24:32 +0000 (+0100) Subject: at query is not NULL when receiving xmit status X-Git-Url: http://git.droids-corp.org/?p=protos%2Fxbee-avr.git;a=commitdiff_plain;h=142fd5d5859539f7eb6703e8b1f6f9035157a37a;hp=32fabd6d0e6718e2e5a85ef8b40dc37c20f20e31 at query is not NULL when receiving xmit status --- diff --git a/main.c b/main.c index 24fba69..f0174a2 100644 --- a/main.c +++ b/main.c @@ -114,7 +114,7 @@ static int parse_xmit_status(struct xbee_ctx *ctx, } /* see if it matches a xmit query (atcmd_query must be NULL) */ - if (ctx->atcmd_query[0] == '\0') { + if (ctx->atcmd_query[0] != '\0') { printf("invalid response 2\n"); return -1; }