mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
format code properly
match the comment from pullrequest about spacing remains : some hand alignment for comment and wrong /** */ usage.
This commit is contained in:
parent
ac4835ef67
commit
1f293795e7
26 changed files with 99 additions and 109 deletions
|
@ -31,17 +31,17 @@ static void sumdDataReceive(uint16_t c)
|
|||
static uint8_t sumdIndex;
|
||||
|
||||
sumdTime = micros();
|
||||
if ((sumdTime - sumdTimeLast) > 4000)
|
||||
if ((sumdTime - sumdTimeLast) > 4000)
|
||||
sumdIndex = 0;
|
||||
sumdTimeLast = sumdTime;
|
||||
|
||||
if (sumdIndex == 0) {
|
||||
if (c != SUMD_SYNCBYTE)
|
||||
if (c != SUMD_SYNCBYTE)
|
||||
return;
|
||||
else
|
||||
sumdFrameDone = false; // lazy main loop didnt fetch the stuff
|
||||
}
|
||||
if (sumdIndex == 2)
|
||||
if (sumdIndex == 2)
|
||||
sumdSize = (uint8_t)c;
|
||||
if (sumdIndex < SUMD_BUFFSIZE)
|
||||
sumd[sumdIndex] = (uint8_t)c;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue