Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wire: Let requestFrom return the number of available bytes #165

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Nov 4, 2020

  1. Wire: Let requestFrom return the number of available bytes

    Previously, it would return the number of requested bytes, even if the
    slave returned a NAK on the address byte, preventing libraries to detect
    such a NAK. For example, the SparkFun HTU21D library would fail to read
    humidity, because the "I'm not ready measuring"-NAK would look like a
    successful read, but with dummy data.
    
    This matches the return value with that of the official Arduino versions
    and the documentation at
    https://www.arduino.cc/en/Reference/WireRequestFrom
    matthijskooijman committed Nov 4, 2020
    Configuration menu
    Copy the full SHA
    3c01fde View commit details
    Browse the repository at this point in the history