Merge pull request #7047 from Zarkopafilis/master

Swap magic number for constant in ibus.c
This commit is contained in:
Michael Keller 2018-11-09 02:20:37 +13:00 committed by GitHub
commit 714db23dea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ static uint8_t ibusFrameStatus(rxRuntimeConfig_t *rxRuntimeConfig)
ibusFrameDone = false;
if (checksumIsOk()) {
if (ibusModel == IBUS_MODEL_IA6 || ibusSyncByte == 0x20) {
if (ibusModel == IBUS_MODEL_IA6 || ibusSyncByte == IBUS_SERIAL_RX_PACKET_LENGTH) {
updateChannelData();
frameStatus = RX_FRAME_COMPLETE;
}