From 2a77107376557fa9d2c3992230c80cc029853afd Mon Sep 17 00:00:00 2001 From: borisbstyle Date: Tue, 7 Feb 2017 01:49:14 +0100 Subject: [PATCH] Prevent resetting motorPwmRate twice for PWM_TYPE_STANDARD --- src/main/fc/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/fc/config.c b/src/main/fc/config.c index c0734610c6..888323cbb5 100755 --- a/src/main/fc/config.c +++ b/src/main/fc/config.c @@ -1118,7 +1118,7 @@ void validateAndFixGyroConfig(void) } // Prevent overriding the max rate of motors - if (motorConfig()->useUnsyncedPwm && (motorConfig()->motorPwmProtocol <= PWM_TYPE_BRUSHED)) { + if (motorConfig()->useUnsyncedPwm && (motorConfig()->motorPwmProtocol <= PWM_TYPE_BRUSHED) && motorConfig()->motorPwmProtocol != PWM_TYPE_STANDARD) { uint32_t maxEscRate = lrintf(1.0f / motorUpdateRestriction); if(motorConfig()->motorPwmRate > maxEscRate)