mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 09:45:37 +03:00
White space correction
This commit is contained in:
parent
d1771d8abe
commit
ea5bc83aef
1 changed files with 6 additions and 6 deletions
|
@ -227,14 +227,14 @@ static void xBusDataReceive(uint16_t c)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if we shall start a frame?
|
// Check if we shall start a frame?
|
||||||
if (xBusFramePosition == 0) {
|
if (xBusFramePosition == 0) {
|
||||||
if (c == XBUS_START_OF_FRAME_BYTE_A1) {
|
if (c == XBUS_START_OF_FRAME_BYTE_A1) {
|
||||||
xBusDataIncoming = true;
|
xBusDataIncoming = true;
|
||||||
xBusFrameLength = XBUS_FRAME_SIZE_A1; //decrease framesize (when receiver change, otherwise board must reboot)
|
xBusFrameLength = XBUS_FRAME_SIZE_A1; //decrease framesize (when receiver change, otherwise board must reboot)
|
||||||
} else if (c == XBUS_START_OF_FRAME_BYTE_A2) {//16channel packet
|
} else if (c == XBUS_START_OF_FRAME_BYTE_A2) {//16channel packet
|
||||||
xBusDataIncoming = true;
|
xBusDataIncoming = true;
|
||||||
xBusFrameLength = XBUS_FRAME_SIZE_A2; //increase framesize
|
xBusFrameLength = XBUS_FRAME_SIZE_A2; //increase framesize
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only do this if we are receiving to a frame
|
// Only do this if we are receiving to a frame
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue