Commit 0577af2e authored by Lorenz Meier's avatar Lorenz Meier

Hotfix for sprung-loaded throttles and RC calibration: Enforce correct trim value

parent e61162c2
......@@ -428,6 +428,13 @@ void RadioComponentController::_inputStickMin(enum rcCalFunctions function, int
} else {
_rgChannelInfo[channel].rcMin = value;
}
// Check if this is throttle and set trim accordingly
if (function == rcCalFunctionThrottle) {
_rgChannelInfo[channel].rcTrim = value;
}
// XXX to support configs which can reverse they need to check a reverse
// flag here and not do this.
_advanceState();
}
......
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