From 47ad27f9f68304781c562ed724cd86d2aa19c333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Sun, 12 Jun 2022 17:59:16 +0200 Subject: [PATCH] fix C++ warnings The cast throws errors about ambiguous conversions. There's a prototype of requestFrom(uint8_t address, uint8_t length) so just use that one. --- src/debug/i2cScan.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug/i2cScan.h b/src/debug/i2cScan.h index c4ab6a41e..29d7cdc95 100644 --- a/src/debug/i2cScan.h +++ b/src/debug/i2cScan.h @@ -10,7 +10,7 @@ uint16_t getRegisterValue(uint8_t address, uint8_t reg, uint8_t length) { Wire.write(reg); Wire.endTransmission(); delay(20); - Wire.requestFrom((int)address, length); + Wire.requestFrom(address, length); DEBUG_MSG("Wire.available() = %d\n", Wire.available()); if (Wire.available() == 2) { // Read MSB, then LSB