Merge pull request #14 from ulysse314/maxBufferSize

maxBufferSize should be size_t type since all the length are size_t type
This commit is contained in:
Limor "Ladyada" Fried 2020-02-04 11:35:38 -05:00 committed by GitHub
commit e714724a09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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