fix(cpn): Wrong input offset value saved to YAML if GV (#3707)

This commit is contained in:
philmoz
2023-06-23 10:37:12 +10:00
committed by GitHub
parent 42098ae514
commit 2a3825ebe9
@@ -36,7 +36,7 @@ Node convert<ExpoData>::encode(const ExpoData& rhs)
node["swtch"] = rhs.swtch;
node["flightModes"] = YamlWriteFlightModes(rhs.flightModes);
node["weight"] = YamlWriteMixWeight(rhs.weight);
node["offset"] = rhs.offset; // YamlWriteMixWeight
node["offset"] = YamlWriteMixWeight(rhs.offset);
node["curve"] = rhs.curve;
node["trimSource"] = rhs.carryTrim; // temporary for 2.8.1, trimSource in 2.9
node["name"] = rhs.name;