Add some more DEBUG preprocessor macro to prevent warning.

This commit is contained in:
Nathael Pajani 2022-06-13 17:06:26 +02:00
parent bbc14d84a7
commit eefddcb022
1 changed files with 6 additions and 1 deletions

View File

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