Skip to content

Commit

Permalink
Update FX_nrf24l01.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
pascallanger committed May 17, 2024
1 parent 54ae77e commit be4595f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Multiprotocol/FX_nrf24l01.ino
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ static void __attribute__((unused)) FX_send_packet()

//Check
uint8_t last_packet_idx = packet_length-1;
if (sub_protocol == FX9630 && IS_BIND_IN_PROGRESS)
if (sub_protocol >= FX9630 && IS_BIND_IN_PROGRESS)
last_packet_idx--;
val=0;
for(uint8_t i=0;i<last_packet_idx;i++)
val+=packet[i];
if (sub_protocol == FX9630)
if (sub_protocol >= FX9630)
val = val ^ 0xFF;
packet[last_packet_idx]=val;

Expand Down

0 comments on commit be4595f

Please sign in to comment.