1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

Merge pull request #9785 from shellixyz/fix/frsky_crc2

This commit is contained in:
Michael Keller 2020-05-14 02:14:02 +12:00 committed by mikeller
parent dcbd8240ac
commit 68a75591f4

View file

@ -51,6 +51,5 @@ static uint8_t frskyCheckSum(uint8_t *data, uint8_t length)
bool frskyCheckSumIsGood(uint8_t *data, uint8_t length)
{
uint16_t checksum = frskyCheckSum(data, length);
return checksum == 0xFF;
return !frskyCheckSum(data, length);
}