From e3f73b5e35885eae9e91d822ec528960b410edce Mon Sep 17 00:00:00 2001 From: Brennon Loveless Date: Sun, 13 Sep 2020 13:03:56 -0400 Subject: [PATCH 1/2] Update TFMini.cpp Fixed checksum to include the last byte which is the temp H byte --- src/TFMini.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TFMini.cpp b/src/TFMini.cpp index b772460..3e94f43 100644 --- a/src/TFMini.cpp +++ b/src/TFMini.cpp @@ -174,7 +174,7 @@ int TFMini::takeMeasurement() { frame[i] = streamPtr->read(); // Store running checksum - if (i < TFMINI_FRAME_SIZE-2) { + if (i < TFMINI_FRAME_SIZE-1) { checksum += frame[i]; } } From 30922227fe1b36e5f672ffe55a7b52a549ac85b2 Mon Sep 17 00:00:00 2001 From: Brennon Loveless Date: Sun, 13 Sep 2020 13:11:47 -0400 Subject: [PATCH 2/2] Update the version Bump the patch version to include the latest checksum modification. --- library.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library.properties b/library.properties index 4f0255c..976c8ab 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=TFMini -version=0.1.0 +version=0.1.1 author=Peter Jansen maintainer=Peter Jansen sentence=An Arduino driver for the Benewake TFMini time-of-flight distance sensor.