From 8e56dce22c49a1a80b4dc9142092ea5238ab34ad Mon Sep 17 00:00:00 2001 From: hughbarney Date: Tue, 30 Nov 2021 23:10:36 +0000 Subject: [PATCH] Mylocation: make into an app --- apps/mylocation/mylocation.app.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/apps/mylocation/mylocation.app.js b/apps/mylocation/mylocation.app.js index 43d6addb1..fb2f73fa7 100644 --- a/apps/mylocation/mylocation.app.js +++ b/apps/mylocation/mylocation.app.js @@ -1,6 +1,5 @@ Bangle.loadWidgets(); Bangle.drawWidgets(); -console.log("myloc start"); const SETTINGS_FILE = "mylocation.json"; let settings; @@ -13,7 +12,6 @@ let s = { } function loadSettings() { - console.log("loadSettings()"); settings = require('Storage').readJSON(SETTINGS_FILE, 1) || s; } @@ -27,7 +25,6 @@ const lats = [51.5072 ,54.9783 ,55.9533 ,48.8566 ,40.7128 ,35.6762, 0.0]; const lons = [-0.1276 ,-1.6178 ,-3.1883 ,2.3522 , -74.0060 ,139.6503, 0.0]; function setFromGPS() { - console.log("set from GPS"); Bangle.on('GPS', (gps) => { //console.log("."); if (gps.fix === 0) return; @@ -71,12 +68,8 @@ function showMainMenu() { }, 'Set From GPS': ()=>{ setFromGPS(); } } - - console.log("showMainMenu 2"); - return E.showMenu(mainmenu); } loadSettings(); showMainMenu(); -console.log("myloc end");