Decawave / uwb-core

Ultrawideband Core
http://decawave.com
Apache License 2.0
58 stars 36 forks source link

[RNG] complete_cb called after the final frame has been sent #6

Closed ncasaril closed 4 years ago

ncasaril commented 4 years ago

Inspired by mynewt-dw1000-core:32 and generalised for uwb-core.

Basically waits with issuing the complete_cb until the FINAL frame has been sent by the requester. Previously the semaphore was released and complete_cb called when the start_tx command had been sent which could lead to another request aborting the current tx operation.

@pkettle I've tested this on nucleos, please have a look over and test this on your side too.