Commit d2417c25 authored by Don Gagne's avatar Don Gagne

Set new RC_CHAN_CNT param after cal

parent a255b8d9
......@@ -924,6 +924,11 @@ void PX4RCCalibration::_writeCalibration(void)
paramMgr->setPendingParam(0, _rgFunctionInfo[i].parameterName, paramChannel);
}
// If the RC_CHAN_COUNT parameter is available write the channel count
if (paramMgr->getComponentForParam("RC_CHAN_CNT").count() != 0) {
paramMgr->setPendingParam(0, "RC_CHAN_CNT", _chanCount);
}
//let the param mgr manage sending all the pending RC_foo updates and persisting after
paramMgr->sendPendingParameters(true, true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment