cpn: Ghost read telemetryBaudrate also
This commit is contained in:
committed by
Raphael Coeffic
parent
5e457172a2
commit
b0910ebec5
@@ -410,6 +410,9 @@ bool convert<ModuleData>::decode(const Node& node, ModuleData& rhs)
|
|||||||
}
|
}
|
||||||
} else if (mod["ghost"]) {
|
} else if (mod["ghost"]) {
|
||||||
Node ghost = mod["ghost"];
|
Node ghost = mod["ghost"];
|
||||||
|
YamlTelemetryBaudrate telemetryBaudrate;
|
||||||
|
ghost["telemetryBaudrate"] >> telemetryBaudrate.value;
|
||||||
|
telemetryBaudrate.toCpn(&rhs.ghost.telemetryBaudrate, getCurrentFirmware()->getBoard());
|
||||||
ghost["raw12bits"] >> rhs.ghost.raw12bits;
|
ghost["raw12bits"] >> rhs.ghost.raw12bits;
|
||||||
} else if (mod["crsf"]) {
|
} else if (mod["crsf"]) {
|
||||||
Node crsf = mod["crsf"];
|
Node crsf = mod["crsf"];
|
||||||
|
|||||||
Reference in New Issue
Block a user