fix(color): radio yaml file may not be parsed correctly on H7 radios (#6725)

This commit is contained in:
philmoz
2025-10-26 18:56:09 +10:00
committed by GitHub
parent 240a7f3e7e
commit a00ec74e0a
5 changed files with 7 additions and 1 deletions
+3 -1
View File
@@ -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 ),