Remove some more empty attributes

This commit is contained in:
Raphael Coeffic
2021-12-31 10:53:11 +01:00
parent 2ccbb7f343
commit 1d2892ee2f
2 changed files with 26 additions and 5 deletions
@@ -151,10 +151,29 @@ Node convert<GeneralSettings>::encode(const GeneralSettings& rhs)
}
}
node["sticksConfig"] = YamlStickConfig(rhs.stickName);
node["switchConfig"] = YamlSwitchConfig(rhs.switchName, rhs.switchConfig);
node["potsConfig"] = YamlPotConfig(rhs.potName, rhs.potConfig);
node["slidersConfig"] = YamlSliderConfig(rhs.sliderName, rhs.sliderConfig);
Node sticksConfig;
sticksConfig = YamlStickConfig(rhs.stickName);
if (sticksConfig && sticksConfig.IsMap()) {
node["sticksConfig"] = sticksConfig;
}
Node switchConfig;
switchConfig = YamlSwitchConfig(rhs.switchName, rhs.switchConfig);
if (switchConfig && switchConfig.IsMap()) {
node["switchConfig"] = switchConfig;
}
Node potsConfig;
potsConfig = YamlPotConfig(rhs.potName, rhs.potConfig);
if (potsConfig && potsConfig.IsMap()) {
node["potsConfig"] = potsConfig;
}
Node slidersConfig;
slidersConfig = YamlSliderConfig(rhs.sliderName, rhs.sliderConfig);
if (slidersConfig && slidersConfig.IsMap()) {
node["slidersConfig"] = slidersConfig;
}
// Color lcd theme settings are not used in EdgeTx
// RadioTheme::ThemeData themeData;