From: Nathael Pajani Date: Sun, 12 Jun 2022 18:51:47 +0000 (+0200) Subject: Add ## to every debug message printed. X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=bbc14d84a7cc79ca49ba25014d7347fd22ec737f;p=soft%2Flpc122x%2Frfsub1GHz Add ## to every debug message printed. --- 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;