Should arduino::MbedI2C::read()
return -1
if there is no data available?
#601
Labels
bug
Something isn't working
Assuming arduino/reference-en#897 in the docs repo is correct, it looks like
arduino::MbedI2C::read()
should be returning-1
instead of0
at the end of the method:ArduinoCore-mbed/libraries/Wire/Wire.cpp
Lines 119 to 124 in 949c70c
As reference, these implementations return
-1
:The text was updated successfully, but these errors were encountered: