Linter fixes
parent
656ed76b5f
commit
dac7a56fcf
|
|
@ -1,8 +1,9 @@
|
||||||
var SunCalc = require("suncalc"); // from modules folder
|
var SunCalc = require("suncalc"); // from modules folder
|
||||||
const storage = require('Storage');
|
const storage = require('Storage');
|
||||||
const widget_utils = require('widget_utils');
|
const widget_utils = require('widget_utils');
|
||||||
const SETTINGS_FILE = "daisy.json";
|
|
||||||
let settings = undefined;
|
let settings = undefined;
|
||||||
|
let location = undefined;
|
||||||
|
const SETTINGS_FILE = "daisy.json";
|
||||||
const global_settings = storage.readJSON("setting.json", true) || {};
|
const global_settings = storage.readJSON("setting.json", true) || {};
|
||||||
const LOCATION_FILE = "mylocation.json";
|
const LOCATION_FILE = "mylocation.json";
|
||||||
const h = g.getHeight();
|
const h = g.getHeight();
|
||||||
|
|
@ -418,9 +419,9 @@ Bangle.on('HRM', function(hrm) {
|
||||||
///////////////// GAUGE images /////////////////////////////////////
|
///////////////// GAUGE images /////////////////////////////////////
|
||||||
|
|
||||||
function addPoint(loc, max) {
|
function addPoint(loc, max) {
|
||||||
angle = ((2*Math.PI)/max) * loc;
|
var angle = ((2*Math.PI)/max) * loc;
|
||||||
x = hyp * Math.sin(angle);
|
var x = hyp * Math.sin(angle);
|
||||||
y = hyp * Math.cos(angle + Math.PI);
|
var y = hyp * Math.cos(angle + Math.PI);
|
||||||
x += rad;
|
x += rad;
|
||||||
y += rad;
|
y += rad;
|
||||||
return [Math.round(x),Math.round(y)];
|
return [Math.round(x),Math.round(y)];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue