Open wuyuanyi135 opened 8 years ago
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 ?
Hi, Code My code uses ack payload. Therefore, I do not expect
TX_DS
aftertx.write
. At PRX, when I calltx.write
, the callback actually gets the flag ofRX_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
), thisW_ACK_PAYLOAD
does not actually fire an interruption. Instead, the following signal isRX_DR
, when the PTX sends a packet. Then theTX_DR
orMAX_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 theRX_DR
flag untouched. Is there any specific reason to do that?Thank you