From: Nathael Pajani Date: Mon, 13 Jun 2022 15:06:26 +0000 (+0200) Subject: Add some more DEBUG preprocessor macro to prevent warning. X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=eefddcb02259f116dd1f66d13e418aaafabdd40e;p=soft%2Flpc122x%2Frfsub1GHz Add some more DEBUG preprocessor macro to prevent warning. --- 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);