Skip to content

Commit

Permalink
Do not transmit info message when random address-type
Browse files Browse the repository at this point in the history
  • Loading branch information
pjalocha committed Mar 21, 2022
1 parent 0f35836 commit acecf94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/proc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ void vTaskPROC(void* pvParameters)
if( StatTxBackOff==0 && RF_TxFIFO.Full()<2 ) // decide whether to transmit the status/info packet
{ OGN_TxPacket<OGN_Packet> *StatusPacket = RF_TxFIFO.getWrite(); // ask for space in the Tx queue
uint8_t doTx=1;
if(RX_Random&0x10) // decide to transmit info or status packet ?
if(Parameters.AddrType && RX_Random&0x10) // decide to transmit info or status packet ?
{ doTx=ReadInfo(StatPacket.Packet); } // and overwrite the StatPacket with the Info data
if(doTx)
{ StatTxBackOff=16+(RX_Random%15);
Expand Down

0 comments on commit acecf94

Please sign in to comment.