1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 01:35:41 +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:
treymarc 2014-05-08 00:36:19 +00:00
parent ac4835ef67
commit 1f293795e7
26 changed files with 99 additions and 109 deletions

View file

@ -28,8 +28,7 @@ void sbusInit(rcReadRawDataPtr *callback)
core.numRCChannels = SBUS_MAX_CHANNEL;
}
struct sbus_dat
{
struct sbus_dat {
unsigned int chan0 : 11;
unsigned int chan1 : 11;
unsigned int chan2 : 11;
@ -44,8 +43,7 @@ struct sbus_dat
unsigned int chan11 : 11;
} __attribute__ ((__packed__));
typedef union
{
typedef union {
uint8_t in[SBUS_FRAME_SIZE];
struct sbus_dat msg;
} sbus_msg;
@ -57,7 +55,7 @@ static void sbusDataReceive(uint16_t c)
{
uint32_t sbusTime;
static uint32_t sbusTimeLast;
static uint8_t sbusFramePosition;
static uint8_t sbusFramePosition;
sbusTime = micros();
if ((sbusTime - sbusTimeLast) > 2500) // sbus2 fast timing