You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The file "LinxWiringDevice.cpp" is used about 16 times in this repository. In the function i2cRead() there is waiting with and a timeout with millis(). You may remove that.
Explanation: Common-mistakes#1
It is possible to add a check for the number of received bytes. Since you do not check the return value of Wire.endTransmission(), there is no need to check the number of received bytes. But if you want to do that, you could do this:
The file "LinxWiringDevice.cpp" is used about 16 times in this repository. In the function i2cRead() there is waiting with and a timeout with millis(). You may remove that.
Explanation: Common-mistakes#1
You may delete this part:
It is possible to add a check for the number of received bytes. Since you do not check the return value of Wire.endTransmission(), there is no need to check the number of received bytes. But if you want to do that, you could do this:
Do you think that there is someone who still uses a very old Arduino version before 1.00 ? I think you can remove that from the code.
The text was updated successfully, but these errors were encountered: