Skip to content

send_packet hangs after receive_packet #5

@smertrios

Description

@smertrios

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions