recorder 0.47: Fix 'blip' on speed map on some recordings

master
Gordon Williams 2025-06-19 14:58:02 +01:00
parent 15047bcce1
commit 782c71e85e
3 changed files with 5 additions and 3 deletions

View File

@ -57,4 +57,5 @@
0.45: Move recorder from widget into library
Improve recorder ClockInfo icons
0.46: Ensure altitude graph draws properly (or any graph using the last column of CSV data)
Lower accuracy of barometer data to ~1cm (saves about 15b/record)
Lower accuracy of barometer data to ~1cm (saves about 15b/record)
0.47: Fix 'blip' on speed map on some recordings

View File

@ -325,6 +325,7 @@ function plotGraph(info, style) { "ram"
var lt = 0; // last time
//var tn = 0; // count for each time period
var strt, dur = info.duration;
if (dur<1) dur=1;
var f = require("Storage").open(filename,"r");
if (f===undefined) return;
var l = f.readLine(f);
@ -372,7 +373,7 @@ function plotGraph(info, style) { "ram"
l = f.readLine(f);
}
// now iterate
var p,lp = Bangle.project({lat:c[1],lon:c[2]});
var p,lp = Bangle.project({lat:c[latIdx],lon:c[lonIdx]});
var t,dx,dy,d,lt = c[timeIdx];
while(l!==undefined) {
c=l.trim().split(",");

View File

@ -2,7 +2,7 @@
"id": "recorder",
"name": "Recorder",
"shortName": "Recorder",
"version": "0.46",
"version": "0.47",
"description": "Record GPS position, heart rate and more in the background, then download to your PC.",
"icon": "app.png",
"tags": "tool,outdoors,gps,widget,clkinfo",