From 064a71f7f2d953e04bb19c706120852a77d2865b Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Sun, 16 Jan 2022 11:17:50 +0100 Subject: [PATCH] Fix deserializing SLIDER[1,2] Resolves #1419 --- companion/src/firmwares/edgetx/yaml_rawsource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/companion/src/firmwares/edgetx/yaml_rawsource.cpp b/companion/src/firmwares/edgetx/yaml_rawsource.cpp index 2e32bcf3c..89b6df13a 100644 --- a/companion/src/firmwares/edgetx/yaml_rawsource.cpp +++ b/companion/src/firmwares/edgetx/yaml_rawsource.cpp @@ -108,7 +108,7 @@ RawSource YamlRawSourceDecode(const std::string& src_str) if (idx < CPN_MAX_INPUTS) { rhs = RawSource(SOURCE_TYPE_VIRTUAL_INPUT, idx); } - } else if (val_len >= 2 + } else if (val_len == 2 && val[0] == 'S' && val[1] >= 'A' && val[1] <= 'Z') {