Merge pull request #6062 from mikeller/fix_beeper_on_usb

Fixed 'beeper -ON_USB'.
This commit is contained in:
Michael Keller 2018-06-08 20:45:29 +12:00 committed by GitHub
commit 18c71cd035
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ void beeper(beeperMode_e mode)
{
if (
mode == BEEPER_SILENCE || (
(beeperConfigMutable()->beeper_off_flags & BEEPER_GET_FLAG(BEEPER_USB - 1))
(beeperConfigMutable()->beeper_off_flags & BEEPER_GET_FLAG(BEEPER_USB))
&& getBatteryState() == BATTERY_NOT_PRESENT
)
) {