Skip to content

Commit

Permalink
Fixed rebase problems due to changes in PR #3870.
Browse files Browse the repository at this point in the history
  • Loading branch information
richardclli committed Nov 30, 2023
1 parent fdeb1c1 commit 4e9c4d7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion radio/src/storage/yaml/yaml_datastructs_pl18.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ static const struct YamlNode struct_RadioData[] = {
YAML_UNSIGNED( "ppmunit", 2 ),
YAML_CUSTOM("semver",nullptr,w_semver),
YAML_CUSTOM("board",nullptr,w_board),
YAML_ARRAY("calib", 48, 22, struct_CalibData, NULL),
YAML_ARRAY("calib", 48, 20, struct_CalibData, NULL),
YAML_PADDING( 16 ),
YAML_SIGNED( "currModel", 8 ),
YAML_UNSIGNED( "contrast", 8 ),
Expand Down Expand Up @@ -368,6 +368,7 @@ static const struct YamlNode struct_RadioData[] = {
YAML_ARRAY("slidersConfig", 0, MAX_POTS, struct_sliderConfig, nullptr),
YAML_ARRAY("potsConfig", 4, 16, struct_potConfig, nullptr),
YAML_ARRAY("switchConfig", 2, 32, struct_switchConfig, nullptr),
YAML_ARRAY("flexSwitches", 0, MAX_FLEX_SWITCHES, struct_flexSwitch, flex_sw_valid),
YAML_STRING("currModelFilename", 17),
YAML_UNSIGNED( "modelQuickSelect", 1 ),
YAML_UNSIGNED( "blOffBright", 7 ),
Expand Down
14 changes: 14 additions & 0 deletions radio/util/hw_defs/pot_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@
"P1": {"default": "POT_CENTER"},
"P2": {"default": "POT_CENTER"}
},
"pl18": {
"P1": {"default": "POT_CENTER"},
"P2": {"default": "POT_CENTER"},
"P3": {"default": "POT_CENTER"},
"SL1": {"default": "SLIDER"},
"SL2": {"default": "SLIDER"}
},
"pl18ev": {
"P1": {"default": "POT_CENTER"},
"P2": {"default": "POT_CENTER"},
"P3": {"default": "POT_CENTER"},
"SL1": {"default": "SLIDER"},
"SL2": {"default": "SLIDER"}
},
"mt12": {
"P1": {"default": "POT"},
"P2": {"default": "POT"},
Expand Down

0 comments on commit 4e9c4d7

Please sign in to comment.