From 4088f7ec768bc86f440e3f9564420f4bc43649c0 Mon Sep 17 00:00:00 2001 From: nujw Date: Fri, 22 Oct 2021 11:16:13 +1300 Subject: [PATCH] Update app.js --- apps/speedalt2/app.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/apps/speedalt2/app.js b/apps/speedalt2/app.js index 8203988f4..6bd967b1b 100644 --- a/apps/speedalt2/app.js +++ b/apps/speedalt2/app.js @@ -5,7 +5,7 @@ Mike Bennett mike[at]kereru.com 0.06 : Add Posn screen 0.07 : Add swipe to change screens same as BTN3 */ -var v = '1.03'; +var v = '1.04'; /*kalmanjs, Wouter Bulten, MIT, https://github.com/wouterbulten/kalmanjs */ var KalmanFilter = (function () { @@ -621,17 +621,13 @@ Bangle.on('lcdPower',function(on) { }); Bangle.on('swipe',function(dir) { - if(dir == 1) { -console.log('RIGHT'); - prevScrn(); - } - else { -console.log('LEFT'); - nextScrn(); - } + if(dir == 1) prevScrn(); + else nextScrn(); }); Bangle.on('touch', function(button){ + nextFunc(0); // Same function as short BTN1 +/* switch(button){ case 1: // BTN4 console.log('BTN4'); @@ -646,9 +642,11 @@ console.log('MDL'); nextFunc(0); // Centre - same function as short BTN1 break; } +*/ }); + // == Main Prog // Read settings.