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

Slave write crash if onRequest doesn't return any byte #18

Open
Benoit3 opened this issue May 14, 2019 · 0 comments
Open

Slave write crash if onRequest doesn't return any byte #18

Benoit3 opened this issue May 14, 2019 · 0 comments

Comments

@Benoit3
Copy link
Contributor

Benoit3 commented May 14, 2019

Hello,
I'm new to arduino (but with i2c driven wiritten on 6805 and 8051 25 years ago..), this issue could be completely wrong. I'm using the python read_i2c_block_data for master, a PI with I2c at 10 kHz and attiny45 at 8 MHz for the slave

If for some reason the onRequest callback doesn't provide any byte (with TinyWire.send) i2c slave feature is definitively lost . I studied the code but didn't found anything.

The workaround is to always send some data in the callback.

Thank for your library which is very helpfull.
Benoit

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