diff --git a/app/index.js b/app/index.js index 9f9987e..6a3d471 100644 --- a/app/index.js +++ b/app/index.js @@ -34,6 +34,10 @@ clock.ontick = (evt) => { updateDate(evt.date); } +battery.onchange = (charger, evt) => { + checkAndUpdateBatteryLevel(); +} + // Create a new instance of the HeartRateSensor object let _hrm = new HeartRateSensor(); _hrm.onreading = function () {