mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 22:13:52 +01:00
drivers/at86rf231: print raw packet when DEBUG_ENABLED
This commit is contained in:
parent
9bdd4cebbc
commit
5b8231737b
@ -65,6 +65,14 @@ void at86rf231_rx_handler(void)
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef DEBUG_ENABLED
|
||||
DEBUG("pkg: ");
|
||||
for (int i = 1; i < at86rf231_rx_buffer[rx_buffer_next].length; i++) {
|
||||
DEBUG("%x ", buf[i]);
|
||||
}
|
||||
DEBUG("\n");
|
||||
#endif
|
||||
|
||||
/* read buffer into ieee802154_frame */
|
||||
ieee802154_frame_read(&buf[1], &at86rf231_rx_buffer[rx_buffer_next].frame,
|
||||
at86rf231_rx_buffer[rx_buffer_next].length);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user