embassy
embassy copied to clipboard
RP2040/235x: Fixed significant issue with i2c slave respond_to_read
I2c slave reads larger than a single chunk are completely broken without this, as a full 16 bytes was being written to the FIFO on every poll rather than waiting for space. This just limits FIFO writes based on free space.
Tested on rp2040.