Skip to content

Commit

Permalink
Merge pull request #9785 from shellixyz/fix/frsky_crc2
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeller committed May 13, 2020
2 parents 7546cad + e4613f3 commit 6aeac3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/rx/frsky_crc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 6aeac3c

Please sign in to comment.