Skip to content

Commit d748de4

Browse files
authored
Adding new function prototype for compatibility
1 parent 11ffcb0 commit d748de4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libraries/Wire/src/Wire.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,11 @@ void TwoWire::flush(void)
446446
//i2cFlush(num); // cleanup
447447
}
448448

449+
size_t TwoWire::requestFrom(uint8_t address, size_t size, bool sendStop)
450+
{
451+
return requestFrom(static_cast<uint16_t>(address), static_cast<size_t>(quantity), static_cast<bool>(sendStop));
452+
}
453+
449454
uint8_t TwoWire::requestFrom(uint8_t address, uint8_t quantity, uint8_t sendStop)
450455
{
451456
return requestFrom(static_cast<uint16_t>(address), static_cast<size_t>(quantity), static_cast<bool>(sendStop));

0 commit comments

Comments
 (0)