Record empty string if no value instead of 0

pull/1285/head
Martin Boonk 2022-01-12 20:35:52 +01:00
parent 8edda16ca2
commit 58e9a47051
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@
};
},
hrm:function() {
var bpm = 0, bpmConfidence = 0;
var bpm = "", bpmConfidence = "";
function onHRM(h) {
if (h.confidence >= bpmConfidence) {
bpmConfidence = h.confidence;
@ -64,7 +64,7 @@
fields : ["Heartrate", "Confidence"],
getValues : () => {
var r = [bpm,bpmConfidence];
bpm = 0; bpmConfidence = 0;
bpm = ""; bpmConfidence = "";
return r;
},
start : () => {