From f9b4c0c3daf732b4101d9c1f48ab0c20e7925e3c Mon Sep 17 00:00:00 2001 From: Jojo Date: Sat, 25 Mar 2023 14:48:30 +0100 Subject: [PATCH 1/3] changed to in32 because of compiler error --- libromi/src/hal/I2C.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libromi/src/hal/I2C.cpp b/libromi/src/hal/I2C.cpp index 6d9fcdc..ac9f6a8 100644 --- a/libromi/src/hal/I2C.cpp +++ b/libromi/src/hal/I2C.cpp @@ -82,10 +82,10 @@ namespace romi { uint8_t I2C::compute_checksum() { - uint16_t sum = 0; + uint32_t sum = 0; for (int i = 0; i < kCheckSumIndex; i++) sum += buffer_[i]; - return (uint8_t) (sum & 0x00ff); + return (uint8_t) (sum & 0x000000ff); } void I2C::assure_checksum(uint8_t sum) From 723baf190ab5d4c5f725a779ac01c0c57856cf02 Mon Sep 17 00:00:00 2001 From: derDieDasJojo Date: Thu, 30 Mar 2023 11:59:24 +0200 Subject: [PATCH 2/3] Update Readme.md --- python/Readme.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/Readme.md b/python/Readme.md index cb4fb0a..2804857 100644 --- a/python/Readme.md +++ b/python/Readme.md @@ -8,3 +8,7 @@ $ python3 -m pip install -e . ``` +To run the Romi hardware you will also need keras, tensorflow + +beacause it is challenging to get it for older raspberry versions i ended up with this one: +https://github.com/PINTO0309/TensorflowLite-bin/releases From e2bac4f64b8a740599d01870d15e8615fb4618e6 Mon Sep 17 00:00:00 2001 From: derDieDasJojo Date: Thu, 30 Mar 2023 15:40:23 +0200 Subject: [PATCH 3/3] Update Readme.md --- python/Readme.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/Readme.md b/python/Readme.md index 2804857..aa4e96d 100644 --- a/python/Readme.md +++ b/python/Readme.md @@ -10,5 +10,4 @@ $ python3 -m pip install -e . To run the Romi hardware you will also need keras, tensorflow -beacause it is challenging to get it for older raspberry versions i ended up with this one: -https://github.com/PINTO0309/TensorflowLite-bin/releases +tensorflow is available for the newest raspbian 64 bit os