From 56460c29c301b0ff5cb99042138abb4227189e1f Mon Sep 17 00:00:00 2001 From: gardners Date: Tue, 7 May 2013 17:29:37 +0930 Subject: [PATCH] add new debug option to show received byte stream. --- slip.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/slip.c b/slip.c index 71f8918c..1cb3114e 100644 --- a/slip.c +++ b/slip.c @@ -200,6 +200,9 @@ int upper7_decode(struct slip_decode_state *state,unsigned char byte) snprintf(crash_handler_clue,1024, "upper7_decode() call #%d: state=%d, byte=0x%02x, rssi_len=%d, dst_offset=%d", u7d_calls,state->state,byte,state->rssi_len,state->dst_offset); + if (config.debug.slipbytestream) + WHTF("call #%d: state=%d, byte=0x%02x, rssi_len=%d, dst_offset=%d", + u7d_calls,state->state,byte,state->rssi_len,state->dst_offset); // Parse out inline RSSI reports if (byte=='{') {