fix: define silenceAlerts() — was called but never written

Restores the original behavior from before commit 46b0cb9:
delegates to logic.onTouch() which transitions state to SILENT.

This was a pre-existing bug (undefined function) exposed by the
multi-target refactoring changing compile guard structure.
This commit is contained in:
2026-02-16 13:18:51 -08:00
parent 087b639e71
commit 4f31b4aff2

View File

@@ -61,6 +61,12 @@ void setup() {
Serial.println("[BOOT] Ready — monitoring ntfy.sh\n");
}
// ── Silence handler (delegates to DoorbellLogic) ────────────────
void silenceAlerts() {
Serial.println("[SILENCE] User completed hold-to-silence gesture");
logic.onTouch(TouchEvent{true, 0, 0});
}
void loop() {
logic.update();