mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
disable dshot telemetry if scheduler policy not set
This commit is contained in:
parent
4c39bba18c
commit
ceabd5098d
1 changed files with 2 additions and 6 deletions
|
@ -338,11 +338,6 @@ static void validateAndFixConfig(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(USE_DSHOT_TELEMETRY)
|
|
||||||
systemConfigMutable()->schedulerOptimizeRate = systemConfigMutable()->schedulerOptimizeRate ||
|
|
||||||
(rpmFilterConfig()->gyro_rpm_notch_harmonics + rpmFilterConfig()->dterm_rpm_notch_harmonics);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// clear features that are not supported.
|
// clear features that are not supported.
|
||||||
// I have kept them all here in one place, some could be moved to sections of code above.
|
// I have kept them all here in one place, some could be moved to sections of code above.
|
||||||
|
|
||||||
|
@ -436,7 +431,8 @@ static void validateAndFixConfig(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(USE_DSHOT_TELEMETRY)
|
#if defined(USE_DSHOT_TELEMETRY)
|
||||||
if (motorConfig()->dev.useBurstDshot && motorConfig()->dev.useDshotTelemetry) {
|
if ((motorConfig()->dev.useBurstDshot || !systemConfig()->schedulerOptimizeRate)
|
||||||
|
&& motorConfig()->dev.useDshotTelemetry) {
|
||||||
motorConfigMutable()->dev.useDshotTelemetry = false;
|
motorConfigMutable()->dev.useDshotTelemetry = false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue