Authentication-Results: mail-b.sr.ht; dkim=permerror header.d=ccss.com header.i=@ccss.com Received: from mail1.ccss.com (mail1.ccss.com [159.203.255.73]) by mail-b.sr.ht (Postfix) with ESMTP id B877411EF1F for <~hdasch/gl-bluetooth-devel@lists.sr.ht>; Mon, 19 Apr 2021 04:37:36 +0000 (UTC) Received: by mail1.ccss.com (Postfix, from userid 114) id F0CF1BFA69; Sun, 18 Apr 2021 21:37:35 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail1.ccss.com X-Spam-Level: X-Spam-Status: No, score=-0.9 required=13.0 tests=ALL_TRUSTED,DKIM_SIGNED, T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.2 Received: from ccss.com (unknown [192.168.76.11]) by mail1.ccss.com (Postfix) with ESMTP id 3010ABF8E0 for <~hdasch/gl-bluetooth-devel@lists.sr.ht>; Sun, 18 Apr 2021 21:37:32 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by ccss.com (Postfix) with ESMTP id EF1C2176071A for <~hdasch/gl-bluetooth-devel@lists.sr.ht>; Sun, 18 Apr 2021 21:37:31 -0700 (PDT) Received: from ccss.com ([127.0.0.1]) by localhost (ccss.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6OHnkpyMB09z; Sun, 18 Apr 2021 21:37:26 -0700 (PDT) Received: from klaatu.ccss.com (klaatu.lan [192.168.42.3]) (Authenticated sender: hugh) by ccss.com (Postfix) with ESMTPSA id 67C1317605D6; Sun, 18 Apr 2021 21:37:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ccss.com; s=mail; t=1618807046; bh=5NCBC3hlIffiqorc3CmuuuOkoRChlZCNF7AVKdi4Jho=; h=From:To:Cc:Subject:Date:From; b=Co4RP3+Ncb0u7WGYNrAw2nynZPs4jvebMErcDdxplYgZJ1A8yNzVp/V90CBwtZsjV K8VLMJAGtFix2dN5NN1o2oU5aaepRrXyU+aFbP9C6OffoqGMO1XtTEcSsXTtnuKdTB u4XA6BF0wU31XY+QAVwK3Pi5sxf17JMVM3qCCPuLWA+SAQG8zYAU4K8nHMjY6uUR4s JMWXUjOLuzZDY05eP/SI2EkCeCL8aEK5CR4ssjA07oRwk8L9NHpRuVedEv0iN7Oiqv ShMGCdyMsHB88RzzsHIP+jOThLzZNxkycATHo3+RleVgIFEkRBCKbQ1F95Tq0Fx4GS 4RSah71FDgSYw== From: Hugh Daschbach To: ~hdasch/gl-bluetooth-devel@lists.sr.ht Cc: Hugh Daschbach Subject: [PATCH] Heartrate not updated after initial connect. Date: Sun, 18 Apr 2021 21:37:17 -0700 Message-Id: <20210419043717.4183-1-hugh@ccss.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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