maxBufferSize should be size_t type since all the length are size_t type
This commit is contained in:
parent
5890cd6c1f
commit
48d59b9eb4
|
|
@ -20,13 +20,13 @@ public:
|
||||||
|
|
||||||
/*! @brief How many bytes we can read in a transaction
|
/*! @brief How many bytes we can read in a transaction
|
||||||
* @return The size of the Wire receive/transmit buffer */
|
* @return The size of the Wire receive/transmit buffer */
|
||||||
uint16_t maxBufferSize() { return _maxBufferSize; }
|
size_t maxBufferSize() { return _maxBufferSize; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
uint8_t _addr;
|
uint8_t _addr;
|
||||||
TwoWire *_wire;
|
TwoWire *_wire;
|
||||||
bool _begun;
|
bool _begun;
|
||||||
uint16_t _maxBufferSize;
|
size_t _maxBufferSize;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // Adafruit_I2CDevice_h
|
#endif // Adafruit_I2CDevice_h
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue