1
0
Fork 0

Update app.js

master
nujw 2021-01-29 10:29:33 +13:00 committed by GitHub
parent cdbfa0d502
commit 6d28cf5de7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}