mirror of
https://github.com/greatscottgadgets/hackrf.git
synced 2026-03-03 14:06:49 +01:00
hackrf_usb: Don't attempt to schedule transfers when OFF
The endpoints are disabled so no good will come of this
This commit is contained in:
@@ -946,6 +946,9 @@ int main(void) {
|
||||
#endif
|
||||
|
||||
while(true) {
|
||||
if (transceiver_mode == TRANSCEIVER_MODE_OFF)
|
||||
continue;
|
||||
|
||||
// Wait until buffer 0 is transmitted/received.
|
||||
while( usb_bulk_buffer_offset < 16384 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user