1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00

Merge pull request #11011 from SteveCEvans/dshot_defaults

Dshot dshot_bitbang=AUTO behaviour change for non-F4
This commit is contained in:
haslinghuis 2021-12-22 23:32:24 +01:00 committed by GitHub
commit 509303ee2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -328,8 +328,13 @@ timeMs_t motorGetMotorEnableTimeMs(void)
#ifdef USE_DSHOT_BITBANG
bool isDshotBitbangActive(const motorDevConfig_t *motorDevConfig)
{
#ifdef STM32F4
return motorDevConfig->useDshotBitbang == DSHOT_BITBANG_ON ||
(motorDevConfig->useDshotBitbang == DSHOT_BITBANG_AUTO && motorDevConfig->useDshotTelemetry && motorDevConfig->motorPwmProtocol != PWM_TYPE_PROSHOT1000);
#else
return motorDevConfig->useDshotBitbang == DSHOT_BITBANG_ON ||
(motorDevConfig->useDshotBitbang == DSHOT_BITBANG_AUTO && motorDevConfig->motorPwmProtocol != PWM_TYPE_PROSHOT1000);
#endif
}
#endif