From c0965f562476106c8aaf2117777be5ba29836275 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sun, 5 May 2024 15:02:01 +0200 Subject: [PATCH] Fix compile warning --- lib/lib_i2c/SPL06_007/src/SPL06-007.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lib_i2c/SPL06_007/src/SPL06-007.cpp b/lib/lib_i2c/SPL06_007/src/SPL06-007.cpp index 33ce591c7..35c968bbf 100644 --- a/lib/lib_i2c/SPL06_007/src/SPL06-007.cpp +++ b/lib/lib_i2c/SPL06_007/src/SPL06-007.cpp @@ -365,7 +365,7 @@ uint8_t i2c_eeprom_read_uint8_t( uint8_t deviceaddress, uint8_t eeaddress ) Wire.write(eeaddress); Wire.endTransmission(false); // false to not release the line - Wire.requestFrom(deviceaddress,1); + Wire.requestFrom(deviceaddress, (uint8_t)1); if (Wire.available()) rdata = Wire.read(); return rdata; }