From 6d28cf5de7471c4292da807ab71662a1fa9f6a29 Mon Sep 17 00:00:00 2001 From: nujw Date: Fri, 29 Jan 2021 10:29:33 +1300 Subject: [PATCH] Update app.js --- apps/speedalt/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/speedalt/app.js b/apps/speedalt/app.js index d9d96bd33..cf542e5c6 100644 --- a/apps/speedalt/app.js +++ b/apps/speedalt/app.js @@ -239,17 +239,17 @@ function doBuzz(hasFix) { // fix gained - double buzz if ( !lastBuzz && hasFix ) { if ( dbg ) print('Fix'); + lastBuzz = 1; Bangle.buzz(); timerBuzz2 = setInterval(doBuzz2, 500); // Trigger a second buzz - lastBuzz = 1; return; } // fix lost - single buzz if ( lastBuzz && !hasFix ) { if ( dbg ) print('Fix lost'); - Bangle.buzz(); lastBuzz = 0; + Bangle.buzz(); return; }