From a0e66280f5bef17441d1df68c6c889bf386a6c60 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Sat, 13 May 2023 23:12:32 +1000 Subject: [PATCH] Update graph on new heart rate reading(Most likely will cause performance issues, need to monitor) --- templates/new_workout.html | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/new_workout.html b/templates/new_workout.html index 94e4ef7..e198fc4 100644 --- a/templates/new_workout.html +++ b/templates/new_workout.html @@ -492,6 +492,7 @@ heartRateData = [...heartRateData, { timestamp: new Date(), bpm: currentHeartRate }]; console.log('currentHeartRate:', currentHeartRate); heartDisplay.innerText = currentHeartRate; + updateGraph(); } function heartRateMonitorConnect() {