Fix GVAR output

This commit is contained in:
Raphael Coeffic
2021-12-31 10:53:11 +01:00
parent af00d03640
commit 36aaa8d555
@@ -371,7 +371,7 @@ Node EncodeFMData(const FlightModeData& rhs, int phaseIdx)
Node gvars;
for (size_t i=0; i<CPN_MAX_GVARS; i++) {
if (!rhs.isGVarEmpty(phaseIdx, i)) {
gvars[std::to_string(i)] = rhs.gvars[i];
gvars[std::to_string(i)]["val"] = rhs.gvars[i];
}
}
if (gvars && gvars.IsMap()) {