fix crosstrims trim reset

This commit is contained in:
3djc
2020-12-06 11:48:06 +01:00
committed by 3djc
parent 3f3d91c737
commit 6aa465a3f8
2 changed files with 8 additions and 7 deletions
-1
View File
@@ -749,7 +749,6 @@ void evalFlightModeMixes(uint8_t mode, uint8_t tick10ms)
bool applyTrims = !(mode & e_perout_mode_notrims);
if (!applyTrims && g_model.thrTrim) {
auto origin = getSourceTrimOrigin(md->srcRaw);
TRACE("thrTrim=%d srcRaw=%d origin=%d stick=%d", g_model.thrTrim, md->srcRaw, origin, g_model.getThrottleStickTrimSource() - MIXSRC_FIRST_TRIM);
if (origin == g_model.getThrottleStickTrimSource() - MIXSRC_FIRST_TRIM) {
applyTrims = true;
}