1
0
Fork 0

Buzz on every measurement and longer if all are done

master
Martin Boonk 2022-02-16 22:44:36 +01:00
parent 8518e7623f
commit 4cff0792f6
3 changed files with 7 additions and 2 deletions

View File

@ -1,2 +1,3 @@
0.01: New App!
0.02: Write available data on reset or kill
0.03: Buzz short on every finished measurement and longer if all are done

View File

@ -75,7 +75,6 @@ function write(){
data += "," + rrMax + "," + rrMin + ","+rrNumberOfValues;
data += "\n";
file.write(data);
Bangle.buzz(500);
}
function onBtHrm(e) {
@ -87,6 +86,11 @@ function onBtHrm(e) {
if (currentSlot <= hrvSlots.length && (Date.now() - startingTime) > (hrvSlots[currentSlot] * 1000) && !hrvValues[hrvSlots[currentSlot]]){
hrvValues[hrvSlots[currentSlot]] = hrv;
currentSlot++;
if (currentSlot == hrvSlots.length){
Bangle.buzz(500)
} else {
Bangle.buzz(50);
}
}
}

View File

@ -2,7 +2,7 @@
"id": "bthrv",
"name": "Bluetooth Heart Rate variance calculator",
"shortName": "BT HRV",
"version": "0.02",
"version": "0.03",
"description": "Calculates HRV from a a BT HRM with interval data",
"icon": "app.png",
"type": "app",