1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 11:29:58 +03:00

Remove superfluous checks of useDshotTelemetry (#13633)

This commit is contained in:
Steve Evans 2024-05-12 22:58:54 +01:00 committed by GitHub
parent e55918c0e0
commit 2d3c8eea33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ void motorWriteAll(float *values)
#ifdef USE_PWM_OUTPUT #ifdef USE_PWM_OUTPUT
if (motorDevice->enabled) { if (motorDevice->enabled) {
#ifdef USE_DSHOT_BITBANG #ifdef USE_DSHOT_BITBANG
if (useDshotTelemetry && isDshotBitbangActive(&motorConfig()->dev)) { if (isDshotBitbangActive(&motorConfig()->dev)) {
// Initialise the output buffers // Initialise the output buffers
if (motorDevice->vTable.updateInit) { if (motorDevice->vTable.updateInit) {
motorDevice->vTable.updateInit(); motorDevice->vTable.updateInit();

View file

@ -371,7 +371,7 @@ void updateArmingStatus(void)
#endif #endif
#ifdef USE_DSHOT_BITBANG #ifdef USE_DSHOT_BITBANG
if (useDshotTelemetry && isDshotBitbangActive(&motorConfig()->dev) && dshotBitbangGetStatus() != DSHOT_BITBANG_STATUS_OK) { if (isDshotBitbangActive(&motorConfig()->dev) && dshotBitbangGetStatus() != DSHOT_BITBANG_STATUS_OK) {
setArmingDisabled(ARMING_DISABLED_DSHOT_BITBANG); setArmingDisabled(ARMING_DISABLED_DSHOT_BITBANG);
} else { } else {
unsetArmingDisabled(ARMING_DISABLED_DSHOT_BITBANG); unsetArmingDisabled(ARMING_DISABLED_DSHOT_BITBANG);