From 4f31b4aff2c4607346987a95548dedd2829aaf22 Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Mon, 16 Feb 2026 13:18:51 -0800 Subject: [PATCH] =?UTF-8?q?fix:=20define=20silenceAlerts()=20=E2=80=94=20w?= =?UTF-8?q?as=20called=20but=20never=20written?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .../doorbell-touch-esp32-32e/doorbell-touch-esp32-32e.ino | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sketches/doorbell-touch-esp32-32e/doorbell-touch-esp32-32e.ino b/sketches/doorbell-touch-esp32-32e/doorbell-touch-esp32-32e.ino index 778c169..4567164 100644 --- a/sketches/doorbell-touch-esp32-32e/doorbell-touch-esp32-32e.ino +++ b/sketches/doorbell-touch-esp32-32e/doorbell-touch-esp32-32e.ino @@ -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();