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) diff --git a/python/Readme.md b/python/Readme.md index cb4fb0a..aa4e96d 100644 --- a/python/Readme.md +++ b/python/Readme.md @@ -8,3 +8,6 @@ $ python3 -m pip install -e . ``` +To run the Romi hardware you will also need keras, tensorflow + +tensorflow is available for the newest raspbian 64 bit os