From 48d59b9eb4387c4b33bae374b7d64ed0f4b2c17c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebel?= Date: Tue, 4 Feb 2020 17:22:06 +0100 Subject: [PATCH] maxBufferSize should be size_t type since all the length are size_t type --- Adafruit_I2CDevice.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Adafruit_I2CDevice.h b/Adafruit_I2CDevice.h index 7dcbaf3..25d9d5c 100644 --- a/Adafruit_I2CDevice.h +++ b/Adafruit_I2CDevice.h @@ -20,13 +20,13 @@ public: /*! @brief How many bytes we can read in a transaction * @return The size of the Wire receive/transmit buffer */ - uint16_t maxBufferSize() { return _maxBufferSize; } + size_t maxBufferSize() { return _maxBufferSize; } private: uint8_t _addr; TwoWire *_wire; bool _begun; - uint16_t _maxBufferSize; + size_t _maxBufferSize; }; #endif // Adafruit_I2CDevice_h