8000 Changing prototype to keep compatibility · Maelstrom96/arduino-esp32@4c8e206 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c8e206

Browse files
authored
Changing prototype to keep compatibility
1 parent e2c6266 commit 4c8e206

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Wire/src/Wire.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ uint8_t TwoWire::requestFrom(uint16_t address, uint8_t quantity, uint8_t sendSto
464464
/* Added to match the Arduino function definition: https://github.com/arduino/ArduinoCore-API/blob/173e8eadced2ad32eeb93bcbd5c49f8d6a055ea6/api/HardwareI2C.h#L39
465465
* See: https://github.com/arduino-libraries/ArduinoECCX08/issues/25
466466
*/
467-
uint8_t TwoWire::requestFrom(uint8_t address, uint8_t len, bool stopBit)
467+
uint8_t TwoWire::requestFrom(uint16_t address, uint8_t len, bool stopBit)
468468
{
469469
return requestFrom((uint16_t)address, (size_t)len, stopBit);
470470
}

0 commit comments

Comments
 (0)
0