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