Fixed 'beeper -ON_USB'.

This commit is contained in:
mikeller 2018-06-08 00:43:15 +12:00
parent 7936fb07d5
commit 52b8fa5316
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
)
) {