oops - remove debugging

pull/925/head
Gordon Williams 2021-10-11 15:39:44 +01:00
parent 87017ce817
commit 68cc9fbd40
1 changed files with 2 additions and 3 deletions

View File

@ -41,8 +41,7 @@ function onGPS(fix) {
}
lastFix = fix;
if (fix.fix) {
print(fix.fix);
if (fix.fix && isFinite(fix.speed)) {
var speed = require("locale").speed(fix.speed);
var m = speed.match(/([0-9,\.]+)(.*)/); // regex splits numbers from units
var txt = (fix.speed<20) ? fix.speed.toFixed(1) : Math.round(fix.speed);
@ -54,7 +53,7 @@ function onGPS(fix) {
}
g.clear();
onGPS({fix:0,satellites:0});
onGPS({fix:1,satellites:3,speed:200}); // testing
// onGPS({fix:1,satellites:3,speed:200}); // testing
Bangle.loadWidgets();
Bangle.drawWidgets();