- uint8_t cc_tx_data[RF_BUFF_LEN + 2];
- uint8_t tx_len = cc_ptr;
- int ret = 0;
-
- /* Create a local copy */
- memcpy((char*)&(cc_tx_data[2]), (char*)cc_tx_buff, tx_len);
- /* "Free" the rx buffer as soon as possible */
- cc_ptr = 0;
- /* Prepare buffer for sending */
- cc_tx_data[0] = tx_len + 1;
- cc_tx_data[1] = 0; /* Broadcast */
- /* Send */
- if (cc1101_tx_fifo_state() != 0) {
- cc1101_flush_tx_fifo();
- }
- ret = cc1101_send_packet(cc_tx_data, (tx_len + 2));
+ uint8_t cc_tx_data[RF_BUFF_LEN + 2];
+ uint8_t tx_len = cc_ptr;
+ int ret = 0;
+
+ /* Create a local copy */
+ memcpy((char*)&(cc_tx_data[2]), (char*)cc_tx_buff, tx_len);
+ /* "Free" the rx buffer as soon as possible */
+ cc_ptr = 0;
+ /* Prepare buffer for sending */
+ cc_tx_data[0] = tx_len + 1;
+ cc_tx_data[1] = 0; /* Broadcast */
+ /* Send */
+ if (cc1101_tx_fifo_state() != 0) {
+ cc1101_flush_tx_fifo();
+ }
+ ret = cc1101_send_packet(cc_tx_data, (tx_len + 2));