]> git.droids-corp.org - protos/xbee-avr.git/commitdiff
at query is not NULL when receiving xmit status
authorFabrice Desclaux <serpilliere@droids-corp.org>
Mon, 20 Feb 2012 22:24:32 +0000 (23:24 +0100)
committerFabrice Desclaux <serpilliere@droids-corp.org>
Mon, 20 Feb 2012 22:24:32 +0000 (23:24 +0100)
main.c

diff --git a/main.c b/main.c
index 24fba694e914b892f6b5540729dd86965364c07d..f0174a2fdb54b6a6acc908552a9ed62541ac61ee 100644 (file)
--- 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;
        }