Skip to content

Commit

Permalink
fix(color): special function 'Set Main Screen' settings not written t…
Browse files Browse the repository at this point in the history
…o YAML file correctly (#5588)
  • Loading branch information
philmoz authored Oct 4, 2024
1 parent 2323327 commit 3a5aa36
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions radio/src/storage/yaml/yaml_datastructs_funcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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));
Expand Down

0 comments on commit 3a5aa36

Please sign in to comment.