From acecf945c04bd128045beab519e74b6f5625f9de Mon Sep 17 00:00:00 2001 From: Pawel Jalocha Date: Mon, 21 Mar 2022 14:06:07 +0000 Subject: [PATCH] Do not transmit info message when random address-type --- main/proc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/proc.cpp b/main/proc.cpp index 7626c6c..b5ed323 100644 --- a/main/proc.cpp +++ b/main/proc.cpp @@ -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 *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);