From 834df547e686fd7f395bd0427d1790e565eeb76c Mon Sep 17 00:00:00 2001 From: mikeller Date: Sun, 3 Jun 2018 12:46:48 +1200 Subject: [PATCH] Fixed Dshot beacon activation conditions. --- src/main/io/beeper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/io/beeper.c b/src/main/io/beeper.c index f0653f7097..8555a0f9eb 100644 --- a/src/main/io/beeper.c +++ b/src/main/io/beeper.c @@ -392,8 +392,8 @@ void beeperUpdate(timeUs_t currentTimeUs) #ifdef USE_DSHOT if (!areMotorsRunning() - && ((currentBeeperEntry->mode == BEEPER_RX_SET && beeperConfig()->dshotBeaconOffFlags & BEEPER_GET_FLAG(BEEPER_RX_SET)) - || (currentBeeperEntry->mode == BEEPER_RX_LOST && beeperConfig()->dshotBeaconOffFlags & BEEPER_GET_FLAG(BEEPER_RX_LOST)))) { + && ((currentBeeperEntry->mode == BEEPER_RX_SET && !(beeperConfig()->dshotBeaconOffFlags & BEEPER_GET_FLAG(BEEPER_RX_SET))) + || (currentBeeperEntry->mode == BEEPER_RX_LOST && !(beeperConfig()->dshotBeaconOffFlags & BEEPER_GET_FLAG(BEEPER_RX_LOST))))) { pwmWriteDshotCommand(ALL_MOTORS, getMotorCount(), beeperConfig()->dshotBeaconTone, false); } #endif