-
Notifications
You must be signed in to change notification settings - Fork 105
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
compiler warning: #85
Comments
Please fix this, either doing complicated stuff like write-read-compare (as suggested here), or just return true (like in my pull request). The best compromise may be to simply return the i2c result, as a bool (success or not). I'm a bit surprised actually that something like this is classified by Arduino as a compile warning, I would consider this a hard error because currently the result is completely undefined. |
Thank you for bring this to my attention @coelner. I have been extremely busy recently and haven't had time to look into this. My apologies. I will try to look at this tonight. @bertrik the proper value needs to be returned or the function needs to be changed to void. I will take a look and see which is appropriate in this situation. Regards, |
#117 is a duplicate, which I realized later, I have a new branch 117-non-void-return (or something like that) @coelner @bertrik @atar-axis could one of you (or anyone else) test this branch, I don't have hardware right now, on biz trip. If it works as intended, then I will release 3.0.0. Finally! I need to pay attention to you guys more often. :) |
Expected behavior
return a bool from:
Actual behavior
Steps to reporduce the behavior
compile the master branch
suggested solution
bool BME280::InitializeFilter()
bool BME280::WriteSettings()
0. Write Settings
-- OR --
return the return value from used I2C functions
The text was updated successfully, but these errors were encountered: