Skip to content

Commit a2514fd

Browse files
committed
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.
1 parent 812e47c commit a2514fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/nanostack/FEATURE_NANOSTACK/targets/TARGET_SL_RAIL/NanostackRfPhyEfr32.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ static int8_t rf_start_cca(uint8_t *data_ptr, uint16_t data_length, uint8_t tx_h
530530
data_ptr[0] = data_length + 2;
531531

532532
RAIL_Idle(gRailHandle, RAIL_IDLE_ABORT, true);
533-
RAIL_WriteTxFifo(gRailHandle, data_ptr, data_length + 1, false);
533+
RAIL_WriteTxFifo(gRailHandle, data_ptr, data_length + 1, true);
534534
radio_state = RADIO_TX;
535535

536536
RAIL_TxOptions_t txOpt = RAIL_TX_OPTIONS_DEFAULT;

0 commit comments

Comments
 (0)