mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
812e47ca9c
commit
a2514fdef3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue