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:
parent
e55918c0e0
commit
2d3c8eea33
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