Record empty string if no value instead of 0
parent
92139253be
commit
b02befe3dd
|
|
@ -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 : () => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue