"Unexpected IRQ during transmit phase!" with ack payload
Hi,
Code
My code uses ack payload. Therefore, I do not expect TX_DS after tx.write. At PRX, when I call tx.write, the callback actually gets the flag of RX_DR, which resulting in the false warning.
The fact is that, after calling tx.write, the event listener is expected to be triggered right after the packet is "sent". Despite the other two commands (W_TX_PAYLOAD, W_TX_PAYLOAD_NOACK), this W_ACK_PAYLOAD does not actually fire an interruption. Instead, the following signal is RX_DR, when the PTX sends a packet. Then the TX_DR or MAX_RT should be set due to the acknowledge payload sent. See the figure in pg.45.

~~In addition, I noticed the line 348, where you leave the RX_DR flag untouched. Is there any specific reason to do that?~~
Thank you
I have fixed this in my repo. Will submit a PR
I have the problem of "Unexpected IRQ during transmit phase!".
I tried your version of the lib but I don't have any exchanges between my devices... At least with the original version I have some exchanges before a crash.
Did we need to change anything else than the main index.js file ?