mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Optimised struct.
This commit is contained in:
parent
9bf762e9e8
commit
48e06edc00
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue