When not thrTrim, the throttle trim may be resetted

This commit is contained in:
bsongis
2012-03-27 20:09:14 +00:00
parent a211de6bc1
commit c63c467182
+2 -2
View File
@@ -2246,9 +2246,9 @@ void moveTrimsToOffsets() // copy state of 3 primary to subtrim
g_model.limitData[i].offset = limit((int16_t)-1000, (int16_t)v, (int16_t)1000); // make sure the offset doesn't go haywire
}
// reset all trims, except throttle
// reset all trims, except throttle (if throttle trim)
for (uint8_t i=0; i<NUM_STICKS; i++) {
if (i!=THR_STICK) {
if (i!=THR_STICK || !g_model.thrTrim) {
for (uint8_t phase=0; phase<MAX_PHASES; phase++) {
int16_t trim = getTrimValue(phase, i);
if (trim <= TRIM_EXTENDED_MAX)