Commit 64c7305f authored by MagoKimbra's avatar MagoKimbra

Fix Buzz

parent 398d211d
......@@ -569,7 +569,9 @@ bool enqueuecommand(const char *cmd) {
SET_OUTPUT(EXP_VOLTAGE_LEVEL_PIN);
WRITE(EXP_VOLTAGE_LEVEL_PIN,UI_VOLTAGE_LEVEL);
ExternalDac::begin(); //initialize ExternalDac
buzz(10,10);
#if HAS_BUZZER
buzz(10,10);
#endif
}
#endif
......
......@@ -13,7 +13,7 @@
lcd_buzz(duration, freq);
#elif defined(BEEPER) && BEEPER >= 0 // on-board buzzers have no further condition
SET_OUTPUT(BEEPER);
tone(BEEPER, freq, duration);
tone(BEEPER, freq);
delay(duration);
noTone(BEEPER);
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment