From 0f7b961b7336513d7916af15b49eab8b2143c2f3 Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Wed, 24 Apr 2024 18:44:42 +0100 Subject: [PATCH] ctrlpad: restore buzz/turn off DnD after 10m --- apps/ctrlpad/wid.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/ctrlpad/wid.ts b/apps/ctrlpad/wid.ts index 0756570ab..886385b8c 100644 --- a/apps/ctrlpad/wid.ts +++ b/apps/ctrlpad/wid.ts @@ -296,6 +296,11 @@ }else{ origBuzz = Bangle.buzz; Bangle.buzz = () => (Promise as any).resolve(); // FIXME + setTimeout(() => { + if(!origBuzz) return; + Bangle.buzz = origBuzz; + origBuzz = undefined; + }, 1000 * 60 * 10); } break;