Skip to content
Snippets Groups Projects
Commit 6af36575 authored by Oleg Hahm's avatar Oleg Hahm
Browse files

Merge pull request #871 from authmillenon/at86rf231-debug-output

at86rf231: Disable debug output for at86rf231 driver
parents 3f7ac580 e11d5c80
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
#include "msg.h" #include "msg.h"
#define ENABLE_DEBUG (0) #define ENABLE_DEBUG (0)
#if ENABLE_DEBUG
#define DEBUG_ENABLED
#endif
#include "debug.h" #include "debug.h"
at86rf231_packet_t at86rf231_rx_buffer[AT86RF231_RX_BUF_SIZE]; at86rf231_packet_t at86rf231_rx_buffer[AT86RF231_RX_BUF_SIZE];
...@@ -45,7 +48,7 @@ void at86rf231_rx_handler(void) ...@@ -45,7 +48,7 @@ void at86rf231_rx_handler(void)
at86rf231_rx_buffer[rx_buffer_next].length); at86rf231_rx_buffer[rx_buffer_next].length);
if (at86rf231_rx_buffer[rx_buffer_next].frame.fcf.frame_type != 2) { 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); ieee802154_frame_print_fcf_frame(&at86rf231_rx_buffer[rx_buffer_next].frame);
#endif #endif
...@@ -58,7 +61,7 @@ void at86rf231_rx_handler(void) ...@@ -58,7 +61,7 @@ void at86rf231_rx_handler(void)
} }
} }
else { else {
#ifdef ENABLE_DEBUG #if DEBUG_ENABLED
DEBUG("GOT ACK for SEQ %u\n", at86rf231_rx_buffer[rx_buffer_next].frame.seq_nr); 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); ieee802154_frame_print_fcf_frame(&at86rf231_rx_buffer[rx_buffer_next].frame);
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment