mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-27 23:41:18 +01:00
Merge pull request #871 from authmillenon/at86rf231-debug-output
at86rf231: Disable debug output for at86rf231 driver
This commit is contained in:
commit
6af36575df
@ -7,6 +7,9 @@
|
||||
#include "msg.h"
|
||||
|
||||
#define ENABLE_DEBUG (0)
|
||||
#if ENABLE_DEBUG
|
||||
#define DEBUG_ENABLED
|
||||
#endif
|
||||
#include "debug.h"
|
||||
|
||||
at86rf231_packet_t at86rf231_rx_buffer[AT86RF231_RX_BUF_SIZE];
|
||||
@ -45,7 +48,7 @@ void at86rf231_rx_handler(void)
|
||||
at86rf231_rx_buffer[rx_buffer_next].length);
|
||||
|
||||
if (at86rf231_rx_buffer[rx_buffer_next].frame.fcf.frame_type != 2) {
|
||||
#ifdef ENABLE_DEBUG
|
||||
#if DEBUG_ENABLED
|
||||
ieee802154_frame_print_fcf_frame(&at86rf231_rx_buffer[rx_buffer_next].frame);
|
||||
#endif
|
||||
|
||||
@ -58,7 +61,7 @@ void at86rf231_rx_handler(void)
|
||||
}
|
||||
}
|
||||
else {
|
||||
#ifdef ENABLE_DEBUG
|
||||
#if DEBUG_ENABLED
|
||||
DEBUG("GOT ACK for SEQ %u\n", at86rf231_rx_buffer[rx_buffer_next].frame.seq_nr);
|
||||
ieee802154_frame_print_fcf_frame(&at86rf231_rx_buffer[rx_buffer_next].frame);
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user