Closed pat1 closed 2 years ago
in i2c-th readable_data_address and readable_data_length are not initialized; it is not good but this do not solve
The problem happen when master request data to slave and slave is in the middle beginTransmission() -> endTransmission() inside i2c_request_interrupt_handler() Wire.write cannot work becouse the slave in in "transmitting" mode. The problem is solved adding Wire.requestWrite that call twi_transmit directly but this broke the API I am looking for a better solution...
in non sistematic way the first attempt fail, the second work.
This is the log