fix(color): radio yaml file may not be parsed correctly on H7 radios (#6725)
This commit is contained in:
@@ -1072,7 +1072,9 @@ PACK(struct RadioData {
|
||||
NOBACKUP(uint8_t rotEncMode:3);
|
||||
|
||||
#if defined(STM32F2) || defined(STM32F4)
|
||||
NOBACKUP(int8_t uartSampleMode:2); // See UartSampleModes
|
||||
NOBACKUP(int8_t uartSampleMode:2); // See UartSampleModes
|
||||
#else
|
||||
NOBACKUP(uint8_t uartSampleModeSpare:2 SKIP);
|
||||
#endif
|
||||
|
||||
#if defined(STICK_DEAD_ZONE)
|
||||
|
||||
@@ -406,6 +406,7 @@ static const struct YamlNode struct_RadioData[] = {
|
||||
YAML_STRING("ownerRegistrationID", 8),
|
||||
YAML_CUSTOM("rotEncDirection",r_rotEncDirection,nullptr),
|
||||
YAML_UNSIGNED( "rotEncMode", 3 ),
|
||||
YAML_PADDING( 2 ),
|
||||
YAML_UNSIGNED( "stickDeadZone", 3 ),
|
||||
YAML_SIGNED( "imuMax", 8 ),
|
||||
YAML_SIGNED( "imuOffset", 8 ),
|
||||
|
||||
@@ -406,6 +406,7 @@ static const struct YamlNode struct_RadioData[] = {
|
||||
YAML_STRING("ownerRegistrationID", 8),
|
||||
YAML_CUSTOM("rotEncDirection",r_rotEncDirection,nullptr),
|
||||
YAML_UNSIGNED( "rotEncMode", 3 ),
|
||||
YAML_PADDING( 2 ),
|
||||
YAML_UNSIGNED( "stickDeadZone", 3 ),
|
||||
YAML_SIGNED( "imuMax", 8 ),
|
||||
YAML_SIGNED( "imuOffset", 8 ),
|
||||
|
||||
@@ -406,6 +406,7 @@ static const struct YamlNode struct_RadioData[] = {
|
||||
YAML_STRING("ownerRegistrationID", 8),
|
||||
YAML_CUSTOM("rotEncDirection",r_rotEncDirection,nullptr),
|
||||
YAML_UNSIGNED( "rotEncMode", 3 ),
|
||||
YAML_PADDING( 2 ),
|
||||
YAML_UNSIGNED( "stickDeadZone", 3 ),
|
||||
YAML_SIGNED( "imuMax", 8 ),
|
||||
YAML_SIGNED( "imuOffset", 8 ),
|
||||
|
||||
@@ -406,6 +406,7 @@ static const struct YamlNode struct_RadioData[] = {
|
||||
YAML_STRING("ownerRegistrationID", 8),
|
||||
YAML_CUSTOM("rotEncDirection",r_rotEncDirection,nullptr),
|
||||
YAML_UNSIGNED( "rotEncMode", 3 ),
|
||||
YAML_PADDING( 2 ),
|
||||
YAML_UNSIGNED( "stickDeadZone", 3 ),
|
||||
YAML_SIGNED( "imuMax", 8 ),
|
||||
YAML_SIGNED( "imuOffset", 8 ),
|
||||
|
||||
Reference in New Issue
Block a user