Skip to content

Commit

Permalink
Remove superfluous checks of useDshotTelemetry (betaflight#13633)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveCEvans authored May 12, 2024
1 parent e55918c commit 2d3c8ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/drivers/motor.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void motorWriteAll(float *values)
#ifdef USE_PWM_OUTPUT
if (motorDevice->enabled) {
#ifdef USE_DSHOT_BITBANG
if (useDshotTelemetry && isDshotBitbangActive(&motorConfig()->dev)) {
if (isDshotBitbangActive(&motorConfig()->dev)) {
// Initialise the output buffers
if (motorDevice->vTable.updateInit) {
motorDevice->vTable.updateInit();
Expand Down
2 changes: 1 addition & 1 deletion src/main/fc/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ void updateArmingStatus(void)
#endif

#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);
} else {
unsetArmingDisabled(ARMING_DISABLED_DSHOT_BITBANG);
Expand Down

0 comments on commit 2d3c8ee

Please sign in to comment.