From 421ee16fbc92d6b4ee3e4a8405d9966003d34c9f Mon Sep 17 00:00:00 2001 From: philmoz Date: Sun, 28 Jan 2024 12:12:07 +1100 Subject: [PATCH] fix(radio): Trainer SF properties not read correctly from YAML (#4577) --- radio/src/storage/yaml/yaml_datastructs_funcs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/storage/yaml/yaml_datastructs_funcs.cpp b/radio/src/storage/yaml/yaml_datastructs_funcs.cpp index 5214ce6aa..3b7a732e8 100644 --- a/radio/src/storage/yaml/yaml_datastructs_funcs.cpp +++ b/radio/src/storage/yaml/yaml_datastructs_funcs.cpp @@ -1458,7 +1458,7 @@ static void r_customFn(void* user, uint8_t* data, uint32_t bitoffs, && val[4] == 's') { CFN_CH_INDEX(cfn) = MAX_STICKS + 1; } else { - auto stick = analogLookupCanonicalIdx(ADC_INPUT_MAIN, val, val_len); + auto stick = analogLookupCanonicalIdx(ADC_INPUT_MAIN, val, l_sep); if (stick >= 0) { CFN_CH_INDEX(cfn) = stick + 1; }