From 0e0086c5d8fec372d52285393da1ebeb3ac2d72c Mon Sep 17 00:00:00 2001 From: nlisgo Date: Thu, 18 Nov 2021 14:25:32 +0000 Subject: [PATCH] Try to get scramble reset to work --- apps/cubescramble/cube-scramble.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/cubescramble/cube-scramble.js b/apps/cubescramble/cube-scramble.js index 72ed6c7e3..c0b1d11c3 100644 --- a/apps/cubescramble/cube-scramble.js +++ b/apps/cubescramble/cube-scramble.js @@ -63,9 +63,12 @@ const presentScramble = () => { E.showMessage(makeScramble().join(" ")); }; -presentScramble(); - -setWatch(() => { - Bangle.buzz(); +const init = () => { presentScramble(); -}, BTN1, {repeat:true}); + + setWatch(() => { + presentScramble(); + }, BTN1, {repeat:true}); +}; + +init();