mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Merge pull request #7047 from Zarkopafilis/master
Swap magic number for constant in ibus.c
This commit is contained in:
commit
714db23dea
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue