1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 17:25:20 +03:00

Optimised struct.

This commit is contained in:
mikeller 2018-05-10 02:15:00 +12:00
parent 9bf762e9e8
commit 48e06edc00

View file

@ -96,7 +96,6 @@ typedef struct __attribute__((packed)) {
struct serialPort_s; struct serialPort_s;
typedef struct mspPort_s { typedef struct mspPort_s {
struct serialPort_s *port; // null when port unused. struct serialPort_s *port; // null when port unused.
bool sharedWithTelemetry;
timeMs_t lastActivityMs; timeMs_t lastActivityMs;
mspPendingSystemRequest_e pendingRequest; mspPendingSystemRequest_e pendingRequest;
mspState_e c_state; mspState_e c_state;
@ -109,6 +108,7 @@ typedef struct mspPort_s {
uint_fast16_t dataSize; uint_fast16_t dataSize;
uint8_t checksum1; uint8_t checksum1;
uint8_t checksum2; uint8_t checksum2;
bool sharedWithTelemetry;
} mspPort_t; } mspPort_t;
void mspSerialInit(void); void mspSerialInit(void);