From 3092be1f4ba2f3ee7362d955fa312b94cd5c8cf7 Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Sat, 20 Apr 2024 17:41:29 +0100 Subject: [PATCH] bootgatthrm: simplify event listener --- apps/bootgatthrm/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/bootgatthrm/boot.js b/apps/bootgatthrm/boot.js index 20ef6dde4..4677aa248 100644 --- a/apps/bootgatthrm/boot.js +++ b/apps/bootgatthrm/boot.js @@ -70,5 +70,5 @@ } setupHRMAdvertising(); - Bangle.on("HRM", function (hrm) { updateBLEHeartRate(hrm); }); + Bangle.on("HRM", updateBLEHeartRate); })();