]> git.droids-corp.org - protos/xbee-avr.git/commitdiff
xbee: always dump rx frame when debug is on
authorOlivier Matz <zer0@droids-corp.org>
Mon, 21 Apr 2014 16:38:44 +0000 (18:38 +0200)
committerOlivier Matz <zer0@droids-corp.org>
Tue, 6 May 2014 19:12:31 +0000 (21:12 +0200)
xbee_user.c

index ff57b8efc20fc421b45f25f9dbe00e4fe0a5346b..17a92afa68952b3a13a69a8837c5ea126594b8fe 100644 (file)
@@ -253,6 +253,7 @@ int8_t xbeeapp_rx(struct xbee_dev *dev, int channel, int type,
 
        NOTICE(E_USER_XBEE, "type=0x%x, channel=%d, ctx=%p",
                type, channel, ctx);
+       __hexdump(frame, len);
 
        /* if ctx is !NULL, it is an answer to a query */
        if (ctx != NULL) {
@@ -330,7 +331,6 @@ int8_t xbeeapp_rx(struct xbee_dev *dev, int channel, int type,
 
        if (ret != XBEE_USER_RETCODE_OK) {
                WARNING(E_USER_XBEE, "undecoded rx frame");
-               hexdump("undecoded rx frame", frame, len);
        }
 
        if (ctx != NULL) {