From dac7a56fcf076d5bdb4943ff8b78f03ab1b65a3a Mon Sep 17 00:00:00 2001 From: David Volovskiy Date: Mon, 5 May 2025 13:21:13 -0400 Subject: [PATCH] Linter fixes --- apps/daisy/app.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/daisy/app.js b/apps/daisy/app.js index f369ae7e9..0a7f201b6 100644 --- a/apps/daisy/app.js +++ b/apps/daisy/app.js @@ -1,8 +1,9 @@ var SunCalc = require("suncalc"); // from modules folder const storage = require('Storage'); const widget_utils = require('widget_utils'); -const SETTINGS_FILE = "daisy.json"; let settings = undefined; +let location = undefined; +const SETTINGS_FILE = "daisy.json"; const global_settings = storage.readJSON("setting.json", true) || {}; const LOCATION_FILE = "mylocation.json"; const h = g.getHeight(); @@ -418,9 +419,9 @@ Bangle.on('HRM', function(hrm) { ///////////////// GAUGE images ///////////////////////////////////// function addPoint(loc, max) { - angle = ((2*Math.PI)/max) * loc; - x = hyp * Math.sin(angle); - y = hyp * Math.cos(angle + Math.PI); + var angle = ((2*Math.PI)/max) * loc; + var x = hyp * Math.sin(angle); + var y = hyp * Math.cos(angle + Math.PI); x += rad; y += rad; return [Math.round(x),Math.round(y)];