From 1aed08226d1017c6bddd769e959dc34beae1173e Mon Sep 17 00:00:00 2001 From: Petri Mattila Date: Thu, 15 Aug 2024 12:35:18 +0100 Subject: [PATCH] Fix adjfunc indexing bug --- src/main/fc/rc_adjustments.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/fc/rc_adjustments.c b/src/main/fc/rc_adjustments.c index a23b2ccaf2..b6c1458448 100644 --- a/src/main/fc/rc_adjustments.c +++ b/src/main/fc/rc_adjustments.c @@ -726,6 +726,6 @@ void adjustmentRangeReset(int index) { adjustmentState[index].deadTime = 0; adjustmentState[index].trigTime = 0; - adjustmentState[index].adjValue = getAdjustmentValue(index); + adjustmentState[index].adjValue = getAdjustmentValue(adjustmentRanges(index)->function); adjustmentState[index].chValue = 0; }