Merge pull request #3315 from atjn/recorder-warn

`recorder` Remove unused variable
pull/3320/head
Gordon Williams 2024-04-02 08:32:34 +01:00 committed by GitHub
commit a963165e69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 11 deletions

View File

@ -86,12 +86,6 @@ module.exports = {
"no-undef"
]
},
"recorder/app.js": {
"hash": "64c838b63a756a712555ae54d0bae89f0373ce317c289f7b19a583d3f91d473b",
"rules": [
"no-unused-vars"
]
},
"podadrem/app.js": {
"hash": "f7392e74974f69553aade2dcc07527b5d3b71a9b84e6dc5e0dd995e78dff8007",
"rules": [

View File

@ -51,3 +51,4 @@
Fix HRM source never being set in output data
0.41: Fix exit from plots and graphs would easily react twice, going back two
levels instead of one.
0.42: Minor code improvements

View File

@ -330,7 +330,7 @@ function plotGraph(info, style) { "ram"
if (f===undefined) return;
var l = f.readLine(f);
l = f.readLine(f); // skip headers
var nl = 0, c, i;
var c, i;
var factor = 1; // multiplier used for values when graphing
var timeIdx = info.fields.indexOf("Time");
if (l!==undefined) {
@ -341,7 +341,7 @@ function plotGraph(info, style) { "ram"
title = /*LANG*/"Heartrate (bpm)";
var hrmIdx = info.fields.indexOf("Heartrate");
while(l!==undefined) {
++nl;c=l.split(",");l = f.readLine(f);
c=l.split(",");l = f.readLine(f);
if (c[hrmIdx]=="") continue;
i = Math.round(80*(c[timeIdx] - strt)/dur);
infn[i]+=+c[hrmIdx];
@ -352,7 +352,7 @@ function plotGraph(info, style) { "ram"
var altIdx = info.fields.indexOf("Barometer Altitude");
if (altIdx<0) altIdx = info.fields.indexOf("Altitude");
while(l!==undefined) {
++nl;c=l.split(",");l = f.readLine(f);
c=l.split(",");l = f.readLine(f);
if (c[altIdx]=="") continue;
i = Math.round(80*(c[timeIdx] - strt)/dur);
infn[i]+=+c[altIdx];
@ -376,7 +376,7 @@ function plotGraph(info, style) { "ram"
var p,lp = Bangle.project({lat:c[1],lon:c[2]});
var t,dx,dy,d,lt = c[timeIdx];
while(l!==undefined) {
++nl;c=l.split(",");
c=l.split(",");
l = f.readLine(f);
if (c[latIdx] == "") {
continue;

View File

@ -2,7 +2,7 @@
"id": "recorder",
"name": "Recorder",
"shortName": "Recorder",
"version": "0.41",
"version": "0.42",
"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",