mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 05:15:25 +03:00
[4.5.1] Remove superfluous checks of useDshotTelemetry (#13634)
This commit is contained in:
parent
0f001ad245
commit
01fb78aa63
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue