Disabled api fetching if display off

This commit is contained in:
2024-11-01 21:33:24 +01:00
parent 7b67633bc9
commit d6f5d2a8ce
3 changed files with 25 additions and 22 deletions

View File

@ -45,8 +45,8 @@ void playTune(int tuneIndex) {
}
}
void beep() {
tone(PIN_BUZZER, 1000, 100);
void beep(int buzz) {
tone(PIN_BUZZER, buzz, 100);
delay(100);
noTone(PIN_BUZZER);
}