From 773d3ad14d63b4b93625b4168e808b8022d54d77 Mon Sep 17 00:00:00 2001 From: breadoven <56191411+breadoven@users.noreply.github.com> Date: Mon, 26 May 2025 16:29:35 +0100 Subject: [PATCH] Update mixer.c --- src/main/flight/mixer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/flight/mixer.c b/src/main/flight/mixer.c index 72a55fce0f..212395d7b9 100644 --- a/src/main/flight/mixer.c +++ b/src/main/flight/mixer.c @@ -264,7 +264,7 @@ void mixerResetDisarmedMotors(void) motor_disarmed[i] = motorZeroCommand; } } - +#if !defined(SITL_BUILD) static uint16_t handleOutputScaling( int16_t input, // Input value from the mixer int16_t stopThreshold, // Threshold value to check if motor should be rotating or not @@ -289,6 +289,7 @@ static uint16_t handleOutputScaling( return value; } +#endif #ifdef USE_DSHOT static void applyTurtleModeToMotors(void) {