add new debug option to show received byte stream.

This commit is contained in:
gardners 2013-05-07 17:29:37 +09:30
parent 109fe77df9
commit 56460c29c3

3
slip.c
View File

@ -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=='{') {