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

missing cast Wire.requestFrom() #6

Open
rtammer opened this issue Jun 3, 2018 · 0 comments
Open

missing cast Wire.requestFrom() #6

rtammer opened this issue Jun 3, 2018 · 0 comments

Comments

@rtammer
Copy link

rtammer commented Jun 3, 2018

Hello,
The code does not compile on Arduino 1.8.5 IDE (Mega 256). There is a cast missing:

uint8_t BlueDot_BME280::readByte(byte reg)
...
Wire.requestFrom(parameter.I2CAddress, 1);
should be ->
Wire.requestFrom(parameter.I2CAddress, (byte)1);
....

Bye
Rainer

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