From bd40a117ec66c06117316e2885e6123f6102f478 Mon Sep 17 00:00:00 2001 From: shinichi Date: Wed, 9 Sep 2020 14:57:23 +0200 Subject: [PATCH] done with data page 0x10 byte 7 isn't checked --- ProftaakRH/DataConverter.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ProftaakRH/DataConverter.cs b/ProftaakRH/DataConverter.cs index 1c9a4e3..24d4bbc 100644 --- a/ProftaakRH/DataConverter.cs +++ b/ProftaakRH/DataConverter.cs @@ -27,6 +27,10 @@ namespace Hardware int input = bytes[4] | (bytes[5] << 8); Console.WriteLine($"Speed is : {input * 0.01}m/s (Range 65.534m/4)"); + if (bytes[6] != 0xFF) + { + Console.WriteLine("Heart rate byte: {0}", Convert.ToString(bytes[6],2)); + } break; case 0x19: