From bbc14d84a7cc79ca49ba25014d7347fd22ec737f Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Sun, 12 Jun 2022 20:51:47 +0200 Subject: [PATCH] Add ## to every debug message printed. --- transparent_bridge/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/transparent_bridge/main.c b/transparent_bridge/main.c index 7d5feca..d503ed4 100644 --- a/transparent_bridge/main.c +++ b/transparent_bridge/main.c @@ -129,7 +129,7 @@ void rf_config(void) set_gpio_callback(rf_rx_calback, &cc1101_gdo0, EDGE_RISING); #ifdef DEBUG - uprintf(UART0, "CC1101 RF link init done.\n"); + uprintf(UART0, "## CC1101 RF link init done.\n"); #endif } @@ -145,12 +145,12 @@ void handle_rf_rx_data(void) cc1101_enter_rx_mode(); #ifdef DEBUG - uprintf(UART0, "RF: ret:%d, st: %d.\n", ret, status); + uprintf(UART0, "## RF: ret:%d, st: %d.\n", ret, status); #endif if (ret > 0) { #ifdef DEBUG - uprintf(UART0, "## RF Data :\n"); + uprintf(UART0, "## RF Data:\n"); #endif for (i = 0; i < ret; i++) { uprintf(UART0, "%c", data[i]); @@ -210,7 +210,7 @@ void send_on_rf(void) ret = cc1101_send_packet(cc_tx_data, tx_len); #ifdef DEBUG - uprintf(UART0, "Tx ret: %d\n", ret); + uprintf(UART0, "## RF Tx ret: %d\n", ret); #endif } @@ -248,7 +248,7 @@ int main(void) cc1101_flush_rx_fifo(); } #ifdef DEBUG - uprintf(UART0, "Back to Rx\n"); + uprintf(UART0, "## RF Back to Rx\n"); #endif cc1101_enter_rx_mode(); loop = 0; -- 2.43.0