I'm having problems determining when the master has finished sending to the slave.
I've got some code running on a Atmega324PB which is connected to an arduino Uno running the wire library as a master.
I'm trying to determine when the master has finished sending data to the slave.
I know that I could figure it out depending on the register it's writing to, but I'm trying to cater for user error, where more data is sent than is supposed to.
The slave is interrupt driven