diff --git a/api/HardwareI2C.h b/api/HardwareI2C.h index c107d1a6..4a8e5f98 100644 --- a/api/HardwareI2C.h +++ b/api/HardwareI2C.h @@ -36,8 +36,8 @@ class HardwareI2C : public Stream virtual uint8_t endTransmission(bool stopBit) = 0; virtual uint8_t endTransmission(void) = 0; - virtual uint8_t requestFrom(uint8_t address, size_t len, bool stopBit) = 0; - virtual uint8_t requestFrom(uint8_t address, size_t len) = 0; + virtual size_t requestFrom(uint8_t address, size_t len, bool stopBit) = 0; + virtual size_t requestFrom(uint8_t address, size_t len) = 0; virtual void onReceive(void(*)(int)) = 0; virtual void onRequest(void(*)(void)) = 0;