Clear TX FIFO on every transmit

Need to avoid a TX packet error from messing up the TX FIFO. Since this API will return busy if a packet is in transmission anyways, this is acceptable.
pull/5579/head
Steven Cooreman 2017-11-24 14:49:53 +01:00
parent 812e47ca9c
commit a2514fdef3
1 changed files with 1 additions and 1 deletions

View File

@ -530,7 +530,7 @@ static int8_t rf_start_cca(uint8_t *data_ptr, uint16_t data_length, uint8_t tx_h
data_ptr[0] = data_length + 2;
RAIL_Idle(gRailHandle, RAIL_IDLE_ABORT, true);
RAIL_WriteTxFifo(gRailHandle, data_ptr, data_length + 1, false);
RAIL_WriteTxFifo(gRailHandle, data_ptr, data_length + 1, true);
radio_state = RADIO_TX;
RAIL_TxOptions_t txOpt = RAIL_TX_OPTIONS_DEFAULT;