Closed fourstix closed 4 years ago
This pull request adds the missing return statement to the write(uint_8) function.
Currently with no return statement, the returned size_t value is undefined. It's probably zero, but who can say?
This fix adds an explicit return statement to return 1 for the size_t value for one byte written.
The bug was in my original code harvested by Sparkfun. Mea Culpa.
Thanks for the PR fourstix. And thanks @gvansickle for reporting.
This pull request adds the missing return statement to the write(uint_8) function.
Currently with no return statement, the returned size_t value is undefined. It's probably zero, but who can say?
This fix adds an explicit return statement to return 1 for the size_t value for one byte written.
The bug was in my original code harvested by Sparkfun. Mea Culpa.