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:
Ben Gamari
2013-07-04 15:30:15 -04:00
parent abb0b3f928
commit 3e3a57e3ce

View File

@ -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 );