From ca86cb0aa361a1efa9e8a7c0dcfe61e599ae878c Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Sat, 21 Nov 2026 16:00:44 +0100 Subject: [PATCH] E010R5: wait for the end of the packet before hopping (#1197) RF2500_SendPayload() returns once the CYRF6936 buffer is filled, while the end of the packet is still being sent: changing the channel right after it corrupted the last packet before each hop (1 in 6, measured). Wait for TX_IRQ_STATUS TXC first (bounded loop): 100% of the packets received right, same timing. --- Multiprotocol/E010R5_cyrf6936.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Multiprotocol/E010R5_cyrf6936.ino b/Multiprotocol/E010R5_cyrf6936.ino index 7142d0cb..ff918102 100644 --- a/Multiprotocol/E010R5_cyrf6936.ino +++ b/Multiprotocol/E010R5_cyrf6936.ino @@ -70,6 +70,8 @@ uint16_t E010R5_callback() case 5: return 1183; default: + //Wait for the end of the packet before changing the channel: RF2500_SendPayload() returns once the CYRF6936 buffer is filled + for(uint8_t i=0; i<100 && (CYRF_ReadRegister(CYRF_04_TX_IRQ_STATUS)&0x02)==0; i++); hopping_frequency_no++; hopping_frequency_no &= 3; if(IS_BIND_IN_PROGRESS)