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

USI_TWI::endTransmission() not returning status #7

Open
bperrybap opened this issue May 4, 2017 · 1 comment
Open

USI_TWI::endTransmission() not returning status #7

bperrybap opened this issue May 4, 2017 · 1 comment

Comments

@bperrybap
Copy link

In TinyWireM.cpp the function endTransmission() is not returning proper status.
This breaks code that checks for return status information using the endTransmission() function.
This:

uint8_t USI_TWI::endTransmission() {
  endTransmission(1);
}

Should be changed to:

uint8_t USI_TWI::endTransmission() {
  return(endTransmission(1));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant