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

Adjust read for repeated start on the Due. #17

Merged

Conversation

gseqBE
Copy link
Contributor

@gseqBE gseqBE commented Jun 16, 2021

I seemed to have found a fix for this sensor.
On the Due, requestFrom() with the below signature needs to be used for repeated start capability.

uint8_t TwoWire::requestFrom(uint8_t address, uint8_t quantity, uint32_t iaddress, uint8_t isize, uint8_t sendStop) 

Added #ifdef _VARIANT_ARDUINO_DUE_X_ for autodetection.

Please confirm with an UNO. I only have a DUO to test.

@gseqBE gseqBE mentioned this pull request Jun 16, 2021
@sosandroid sosandroid merged commit 381959c into sosandroid:master Aug 17, 2021
@sosandroid
Copy link
Owner

Thanks for this proposal

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

Successfully merging this pull request may close these issues.

None yet

2 participants