Add ## to every debug message printed.

This commit is contained in:
Nathael Pajani 2022-06-12 20:51:47 +02:00
parent 49a0c61777
commit bbc14d84a7

View file

@ -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;