Hi, I have a simple script which waits for a remote command then sends back some data:
PyLora.wait_for_packet(-1)
cmd = PyLora.receive_packet()
# process command:
...
# send response:
PyLora.send_packet(resp)
=> The last statement (send_packet) hangs, probably in the loop waiting for the IRQ_TX_DONE_MASK flag to clear.
note: if I comment out the call to receive_packet(), then send_packet() goes through just fine.
what am I missing?