Update graph on new heart rate reading(Most likely will cause performance issues, need to monitor)

This commit is contained in:
Peter Stockings
2023-05-13 23:12:32 +10:00
parent 70cbb9af2b
commit a0e66280f5

View File

@@ -492,6 +492,7 @@
heartRateData = [...heartRateData, { timestamp: new Date(), bpm: currentHeartRate }];
console.log('currentHeartRate:', currentHeartRate);
heartDisplay.innerText = currentHeartRate;
updateGraph();
}
function heartRateMonitorConnect() {