maxBufferSize should be size_t type since all the length are size_t type

This commit is contained in:
Jérôme Lebel 2020-02-04 17:22:06 +01:00
parent 5890cd6c1f
commit 48d59b9eb4
1 changed files with 2 additions and 2 deletions

View File

@ -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