diff --git a/radio/src/datastructs_private.h b/radio/src/datastructs_private.h index 901573bb3..d31cc1c5c 100644 --- a/radio/src/datastructs_private.h +++ b/radio/src/datastructs_private.h @@ -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) diff --git a/radio/src/storage/yaml/yaml_datastructs_pa01.cpp b/radio/src/storage/yaml/yaml_datastructs_pa01.cpp index fa459fd78..1d7ee9833 100644 --- a/radio/src/storage/yaml/yaml_datastructs_pa01.cpp +++ b/radio/src/storage/yaml/yaml_datastructs_pa01.cpp @@ -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 ), diff --git a/radio/src/storage/yaml/yaml_datastructs_st16.cpp b/radio/src/storage/yaml/yaml_datastructs_st16.cpp index cb3e0b81c..2a4cfd740 100644 --- a/radio/src/storage/yaml/yaml_datastructs_st16.cpp +++ b/radio/src/storage/yaml/yaml_datastructs_st16.cpp @@ -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 ), diff --git a/radio/src/storage/yaml/yaml_datastructs_t15pro.cpp b/radio/src/storage/yaml/yaml_datastructs_t15pro.cpp index cb3e0b81c..2a4cfd740 100644 --- a/radio/src/storage/yaml/yaml_datastructs_t15pro.cpp +++ b/radio/src/storage/yaml/yaml_datastructs_t15pro.cpp @@ -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 ), diff --git a/radio/src/storage/yaml/yaml_datastructs_tx15.cpp b/radio/src/storage/yaml/yaml_datastructs_tx15.cpp index cb3e0b81c..2a4cfd740 100644 --- a/radio/src/storage/yaml/yaml_datastructs_tx15.cpp +++ b/radio/src/storage/yaml/yaml_datastructs_tx15.cpp @@ -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 ),