ctrlpad: restore buzz/turn off DnD after 10m

pull/3383/head
Rob Pilling 2024-04-24 18:44:42 +01:00
parent 84e6a508fc
commit 0f7b961b73
1 changed files with 5 additions and 0 deletions

View File

@ -296,6 +296,11 @@
}else{ }else{
origBuzz = Bangle.buzz; origBuzz = Bangle.buzz;
Bangle.buzz = () => (Promise as any).resolve(); // FIXME Bangle.buzz = () => (Promise as any).resolve(); // FIXME
setTimeout(() => {
if(!origBuzz) return;
Bangle.buzz = origBuzz;
origBuzz = undefined;
}, 1000 * 60 * 10);
} }
break; break;