mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-04 17:48:11 +00:00
Update FrSky_Rx_cc2500.ino
This commit is contained in:
parent
9f32a1f22b
commit
1a631908f4
@ -419,8 +419,10 @@ uint16_t FrSky_Rx_callback()
|
||||
if (frsky_rx_format == FRSKY_RX_D16FCC || frsky_rx_format == FRSKY_RX_D16LBT)
|
||||
{
|
||||
if(rx_data_started)
|
||||
if(frsky_rx_chanskip != ((packet[4] & 0xC0) >> 6) | ((packet[5] & 0x3F) << 2))
|
||||
{
|
||||
if(frsky_rx_chanskip != (((packet[4] & 0xC0) >> 6) | ((packet[5] & 0x3F) << 2)))
|
||||
chanskip_valid=false; // chanskip value has changed which surely indicates a bad frame
|
||||
}
|
||||
else
|
||||
frsky_rx_chanskip = ((packet[4] & 0xC0) >> 6) | ((packet[5] & 0x3F) << 2); // chanskip init
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user