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

STM32 compatibility #9

Open
pabloandresm opened this issue Feb 18, 2020 · 0 comments
Open

STM32 compatibility #9

pabloandresm opened this issue Feb 18, 2020 · 0 comments

Comments

@pabloandresm
Copy link

When compiling this library against any STM32 it fails:
src\ClosedCube_SHT31D.cpp:416:8: error: 'class TwoWire' has no member named 'readBytes'
Wire.readBytes(buf, (uint8_t)2);

The problem is that, for the STM32, the Wire class is not inherited from Stream class, so it has no readBytes method.

Consider replacing the readBytes to read 2 bytes to be able to make this library compatible with STM32.

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