diff options
Diffstat (limited to 'host/libubertooth')
-rw-r--r-- | host/libubertooth/src/ubertooth.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/host/libubertooth/src/ubertooth.c b/host/libubertooth/src/ubertooth.c index 9b19d2c..d1a5799 100644 --- a/host/libubertooth/src/ubertooth.c +++ b/host/libubertooth/src/ubertooth.c @@ -271,8 +271,7 @@ int ubertooth_bulk_receive(ubertooth_t* ut, rx_callback cb, void* cb_args) rx = (usb_pkt_rx*)(ut->full_usb_buf + PKT_LEN * i); if(rx->pkt_type != KEEP_ALIVE) { ringbuffer_add(ut->packets, rx); - if(cb) - (*cb)(ut, cb_args); + (*cb)(ut, cb_args); } if(ut->stop_ubertooth) { if(ut->rx_xfer) |