Nuand / bladeRF

bladeRF USB 3.0 Superspeed Software Defined Radio Source Code
http://nuand.com
Other
1.13k stars 455 forks source link

libbladeRF: sync_rx/tx does not return an error when stream fails if timeout_ms=0 #233

Closed jynik closed 10 years ago

jynik commented 10 years ago

If the underlying stream fails (e.g., the bladeRF is unplugged while streaming), the sync_rx/tx calls do not return with an error if called with timeout_ms=0.

A workaround is to set the timeout_ms parameter to a non-zero value when using sync_rx/sync_tx, such as 3000 (3 seconds). The failure will result in the sync call timing out.

I will be pushing a dev-issue_233 branch with a fix tonight or tomorrow. Stay tuned.

jynik commented 10 years ago

Fix pushed into dev-issue_233 branch. Will be testing more tomorrow and planning to merge to master Thursday or Friday evening.

jynik commented 10 years ago

Fix applied in 226b1b316e2eea261bf040db04a9af5e323cc5a0.