Swap magic number for constant in ibus.c
This commit is contained in:
parent
3492bcff3d
commit
d639175a09
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue