[PATCH] Heartrate not updated after initial connect.
Export this patch
Broken by 30eca31.
---
glbt-heartrate.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/glbt-heartrate.el b/glbt-heartrate.el
index d62cb14..0ff7ac0 100644
--- a/glbt-heartrate.el
+++ b/glbt-heartrate.el
@@ -381,7 +381,7 @@ https://www.bluetooth.com/specifications/specs/."
(glbt-debug "glbthr--handle-characteristic-changes: lost contact with %S"
path)
(alert "Heart rate sensor contact lost."))
- (when (and hr (= 0 glbthr-heart-rate))
+ (when (and hr (= hr glbthr-heart-rate))
(setq glbthr-heart-rate hr)
(force-mode-line-update)))))
--
2.31.1