Skip to content

Commit c497d4f

Browse files
Merge pull request #11604 from P-I-Engineer/dshot-beeper-buzzer-ignore-fix
dshot beeper ignore list fix
2 parents e630ecf + 1fd82cb commit c497d4f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/io/beeper.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,9 @@ void beeperUpdate(timeUs_t currentTimeUs)
345345
if (!beeperIsOn) {
346346
#ifdef USE_DSHOT
347347
if (isMotorProtocolDshot() && !areMotorsRunning() && beeperConfig()->dshot_beeper_enabled
348-
&& currentTimeUs - lastDshotBeeperCommandTimeUs > getDShotBeaconGuardDelayUs())
348+
&& currentTimeUs - lastDshotBeeperCommandTimeUs > getDShotBeaconGuardDelayUs()
349+
&& currentBeeperEntry->sequence[beeperPos] != 0 // added beeper timeout so dshot does not beep on "off"
350+
&& !(getBeeperOffMask() & (1 << (currentBeeperEntry->mode - 1)))) // added beeper ignore to dshot beacon
349351
{
350352
lastDshotBeeperCommandTimeUs = currentTimeUs;
351353
sendDShotCommand(beeperConfig()->dshot_beeper_tone);

0 commit comments

Comments
 (0)