Buzzer: add playForced(); fix per-channel force-on notification ignoring global mute

buzzer.play() was returning early when _is_quiet=true, so channels with
explicit notification=ON were silent even though the logic correctly set
play=true. playForced() bypasses the quiet check for these overrides.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-05-11 21:17:31 +02:00
parent 1281ec5c35
commit 9d92fb62df
3 changed files with 18 additions and 12 deletions

View File

@@ -20,7 +20,8 @@ class genericBuzzer
{
public:
void begin(); // set up buzzer port
void play(const char *melody); // Generic play function
void play(const char *melody);
void playForced(const char *melody); // play regardless of quiet state
void loop(); // loop driven-nonblocking
void startup(); // play startup sound
void shutdown(); // play shutdown sound