File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,9 @@ static void __attribute__((unused)) CABELL_send_packet(uint8_t bindMode)
190190 }
191191 TxPacket.option = (bindMode) ? (option & (~CABELL_OPTION_MASK_CHANNEL_REDUCTION)) : option; // remove channel reduction if in bind mode
192192 }
193- TxPacket.reserved = 0 ;
193+
194+ rf_ch_num = CABELL_getNextChannel (hopping_frequency,CABELL_RADIO_CHANNELS, rf_ch_num);
195+ TxPacket.reserved = rf_ch_num & 0x3F ;
194196 TxPacket.modelNum = RX_num;
195197 uint16_t checkSum = TxPacket.modelNum + TxPacket.option + TxPacket.RxMode + TxPacket.reserved ; // Start Calculate checksum
196198
@@ -244,7 +246,6 @@ static void __attribute__((unused)) CABELL_send_packet(uint8_t bindMode)
244246 TxPacket.checkSum_LSB = checkSum & 0x00FF ;
245247
246248 // Set channel for next transmission
247- rf_ch_num = CABELL_getNextChannel (hopping_frequency,CABELL_RADIO_CHANNELS, rf_ch_num);
248249 NRF24L01_WriteReg (NRF24L01_05_RF_CH,rf_ch_num);
249250
250251 // NRF24L01_FlushTx(); //just in case things got hung up
You can’t perform that action at this time.
0 commit comments