From 2133d42bd201e5303bfaed60950836b4649d048e Mon Sep 17 00:00:00 2001 From: philmoz Date: Tue, 20 Dec 2022 09:59:55 +1100 Subject: [PATCH] fix(cpn): Size of the YamlStickConfig struct was set wrong (#2891) The YamlStickConfig definition was defined and sized with CPN_MAX_SWITCHES (32) instead of CPN_MAX_STICKS (4). When loading radio.yml this would overwrite 112 bytes past the end of the stickName array in the GeneralSettings class. --- companion/src/firmwares/edgetx/yaml_switchconfig.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/companion/src/firmwares/edgetx/yaml_switchconfig.h b/companion/src/firmwares/edgetx/yaml_switchconfig.h index c5240e4e4..cdd57ad9b 100644 --- a/companion/src/firmwares/edgetx/yaml_switchconfig.h +++ b/companion/src/firmwares/edgetx/yaml_switchconfig.h @@ -46,7 +46,7 @@ struct YamlNameConfig { } }; -typedef YamlNameConfig YamlStickConfig; +typedef YamlNameConfig YamlStickConfig; template struct YamlKnobConfig : public YamlNameConfig {