Remove some more empty attributes
This commit is contained in:
@@ -151,10 +151,29 @@ Node convert<GeneralSettings>::encode(const GeneralSettings& rhs)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
node["sticksConfig"] = YamlStickConfig(rhs.stickName);
|
Node sticksConfig;
|
||||||
node["switchConfig"] = YamlSwitchConfig(rhs.switchName, rhs.switchConfig);
|
sticksConfig = YamlStickConfig(rhs.stickName);
|
||||||
node["potsConfig"] = YamlPotConfig(rhs.potName, rhs.potConfig);
|
if (sticksConfig && sticksConfig.IsMap()) {
|
||||||
node["slidersConfig"] = YamlSliderConfig(rhs.sliderName, rhs.sliderConfig);
|
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
|
// Color lcd theme settings are not used in EdgeTx
|
||||||
// RadioTheme::ThemeData themeData;
|
// RadioTheme::ThemeData themeData;
|
||||||
|
|||||||
@@ -719,7 +719,9 @@ Node convert<ModelData>::encode(const ModelData& rhs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (auto input : inputs) {
|
for (auto input : inputs) {
|
||||||
node["inputNames"][std::to_string(input)]["val"] = rhs.inputNames[input];
|
if (rhs.inputNames[input][0]) {
|
||||||
|
node["inputNames"][std::to_string(input)]["val"] = rhs.inputNames[input];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < CPN_MAX_CURVES; i++) {
|
for (int i = 0; i < CPN_MAX_CURVES; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user