Record empty string if no value instead of 0

master
Martin Boonk 2022-01-12 19:46:15 +01:00
parent 92139253be
commit b02befe3dd
1 changed files with 3 additions and 3 deletions

View File

@ -1,15 +1,15 @@
(function(recorders) { (function(recorders) {
recorders.bthrm = function() { recorders.bthrm = function() {
var bpm = 0; var bpm = "";
function onHRM(h) { function onHRM(h) {
bpm = h.bpm; bpm = h.bpm;
} }
return { return {
name : "BTHR", name : "BTHR",
fields : ["BT Heartrate"], fields : ["BT Heartrate"],
getValues : () => { getValues : () => {
result = [bpm]; result = [bpm];
bpm = 0; bpm = "";
return result; return result;
}, },
start : () => { start : () => {