fix: stop moduleData antennaMode aliasing subType on boards without an external antenna (#7735)

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Peter Feerick
2026-09-01 12:06:25 +10:00
committed by GitHub
co-authored by Claude Opus 5
parent 3f7f6b6db0
commit 73390c738e
28 changed files with 122 additions and 44 deletions
@@ -755,7 +755,8 @@ static const struct YamlNode union_anonymous_4_elmts[] = {
};
static const struct YamlNode struct_ModuleData[] = {
YAML_IDX,
YAML_UNSIGNED_CUST( "type", 8, r_moduleType, w_moduleType ),
YAML_UNSIGNED_CUST( "type", 6, r_moduleType, w_moduleType ),
YAML_ENUM("antennaMode", 2, enum_AntennaModes, NULL),
YAML_CUSTOM("subType",r_modSubtype,w_modSubtype),
YAML_UNSIGNED( "channelsStart", 8 ),
YAML_SIGNED_CUST( "channelsCount", 8, r_channelsCount, w_channelsCount ),