From eefddcb02259f116dd1f66d13e418aaafabdd40e Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Mon, 13 Jun 2022 17:06:26 +0200 Subject: [PATCH] Add some more DEBUG preprocessor macro to prevent warning. --- transparent_bridge/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/transparent_bridge/main.c b/transparent_bridge/main.c index d503ed4..6c2bbe3 100644 --- a/transparent_bridge/main.c +++ b/transparent_bridge/main.c @@ -194,7 +194,9 @@ void send_on_rf(void) { uint8_t cc_tx_data[RF_BUFF_LEN + 2]; uint8_t tx_len = cc_tx; +#ifdef DEBUG int ret = 0; +#endif /* Create a local copy */ memcpy((char*)&(cc_tx_data), (char*)cc_tx_buff, tx_len); @@ -207,7 +209,10 @@ void send_on_rf(void) if (cc1101_tx_fifo_state() != 0) { cc1101_flush_tx_fifo(); } - ret = cc1101_send_packet(cc_tx_data, tx_len); +#ifdef DEBUG + ret = +#endif + cc1101_send_packet(cc_tx_data, tx_len); #ifdef DEBUG uprintf(UART0, "## RF Tx ret: %d\n", ret); -- 2.43.0