From 3a5aa3683ff7dc1344d08b8ec930b084a136ee30 Mon Sep 17 00:00:00 2001 From: philmoz Date: Fri, 4 Oct 2024 18:32:22 +1000 Subject: [PATCH] fix(color): special function 'Set Main Screen' settings not written to YAML file correctly (#5588) --- radio/src/storage/yaml/yaml_datastructs_funcs.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/radio/src/storage/yaml/yaml_datastructs_funcs.cpp b/radio/src/storage/yaml/yaml_datastructs_funcs.cpp index 8602b6ca4..29dfa8cd8 100644 --- a/radio/src/storage/yaml/yaml_datastructs_funcs.cpp +++ b/radio/src/storage/yaml/yaml_datastructs_funcs.cpp @@ -1827,10 +1827,6 @@ static bool w_customFn(void* user, uint8_t* data, uint32_t bitoffs, if (!wf(opaque, str, strlen(str))) return false; break; -#if defined(COLORLCD) - case FUNC_SET_SCREEN: -#endif - #if defined(FUNCTION_SWITCHES) case FUNC_PUSH_CUST_SWITCH: str = yaml_unsigned2str(CFN_CS_INDEX(cfn)); // SW index @@ -1841,6 +1837,9 @@ static bool w_customFn(void* user, uint8_t* data, uint32_t bitoffs, break; #endif +#if defined(COLORLCD) + case FUNC_SET_SCREEN: +#endif case FUNC_HAPTIC: case FUNC_LOGS: // 10th of seconds str = yaml_unsigned2str(CFN_PARAM(cfn));