mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
integrated tommie's eeprom sanity check. much less chances of new firmware screwing up due to old config version.
fixed pwm init for airplane mode mistakenly deleting motors from the mix. flyingwing should really work now. removed led debug from althold git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@223 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
parent
9d5bfdb60b
commit
1dea2b3b3b
7 changed files with 2952 additions and 2900 deletions
4
src/mw.h
4
src/mw.h
|
@ -115,6 +115,8 @@ typedef struct mixer_t {
|
|||
|
||||
typedef struct config_t {
|
||||
uint8_t version;
|
||||
uint16_t size;
|
||||
uint8_t magic_be; // magic number, should be 0xBE
|
||||
uint8_t mixerConfiguration;
|
||||
uint32_t enabledFeatures;
|
||||
|
||||
|
@ -224,6 +226,8 @@ typedef struct config_t {
|
|||
uint32_t serial_baudrate;
|
||||
|
||||
motorMixer_t customMixer[MAX_MOTORS]; // custom mixtable
|
||||
uint8_t magic_ef; // magic number, should be 0xEF
|
||||
uint8_t chk; // XOR checksum
|
||||
} config_t;
|
||||
|
||||
typedef struct flags_t {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue