fix: Telemetry "Ignore instances" option being unset by Companion (#1525)
This commit is contained in:
@@ -735,6 +735,7 @@ Node convert<ModelData>::encode(const ModelData& rhs)
|
|||||||
node["thrTrim"] = (int)rhs.thrTrim;
|
node["thrTrim"] = (int)rhs.thrTrim;
|
||||||
node["trimInc"] = rhs.trimInc;
|
node["trimInc"] = rhs.trimInc;
|
||||||
node["displayTrims"] = rhs.trimsDisplay;
|
node["displayTrims"] = rhs.trimsDisplay;
|
||||||
|
node["ignoreSensorIds"] = (int)rhs.frsky.ignoreSensorIds;
|
||||||
node["disableThrottleWarning"] = (int)rhs.disableThrottleWarning;
|
node["disableThrottleWarning"] = (int)rhs.disableThrottleWarning;
|
||||||
node["enableCustomThrottleWarning"] = (int)rhs.enableCustomThrottleWarning;
|
node["enableCustomThrottleWarning"] = (int)rhs.enableCustomThrottleWarning;
|
||||||
node["customThrottleWarningPosition"] = (int)rhs.customThrottleWarningPosition;
|
node["customThrottleWarningPosition"] = (int)rhs.customThrottleWarningPosition;
|
||||||
@@ -962,6 +963,7 @@ bool convert<ModelData>::decode(const Node& node, ModelData& rhs)
|
|||||||
node["thrTrim"] >> rhs.thrTrim;
|
node["thrTrim"] >> rhs.thrTrim;
|
||||||
node["trimInc"] >> rhs.trimInc;
|
node["trimInc"] >> rhs.trimInc;
|
||||||
node["displayTrims"] >> rhs.trimsDisplay;
|
node["displayTrims"] >> rhs.trimsDisplay;
|
||||||
|
node["ignoreSensorIds"] >> rhs.frsky.ignoreSensorIds;
|
||||||
node["disableThrottleWarning"] >> rhs.disableThrottleWarning;
|
node["disableThrottleWarning"] >> rhs.disableThrottleWarning;
|
||||||
node["enableCustomThrottleWarning"] >> rhs.enableCustomThrottleWarning;
|
node["enableCustomThrottleWarning"] >> rhs.enableCustomThrottleWarning;
|
||||||
node["customThrottleWarningPosition"] >> rhs.customThrottleWarningPosition;
|
node["customThrottleWarningPosition"] >> rhs.customThrottleWarningPosition;
|
||||||
|
|||||||
Reference in New Issue
Block a user