File tree Expand file tree Collapse file tree
src/hal/user_comps/xhc-whb04b-6 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -429,7 +429,8 @@ bool Usb::setupAsyncTransfer()
429429 // ! timeout[ms]
430430 750 );
431431 int r = libusb_submit_transfer (inTransfer);
432- if (r != 0 ){
432+ if (r != 0 )
433+ {
433434 std::cerr << " libusb_submit_transfer failed with " << r << endl;
434435 mDoReconnect = true ;
435436 return false ;
@@ -554,7 +555,8 @@ void Usb::onUsbDataReceived(struct libusb_transfer* transfer)
554555// ----------------------------------------------------------------------
555556Usb::~Usb ()
556557{
557- if (deviceHandle != nullptr ){
558+ if (deviceHandle != nullptr )
559+ {
558560 close ();
559561 }
560562 libusb_free_transfer (inTransfer);
@@ -694,7 +696,8 @@ Usb::InitStatus Usb::init()
694696 if (r == 1 )
695697 {
696698 r = libusb_detach_kernel_driver (deviceHandle, 0 );
697- if (r < 0 ){
699+ if (r < 0 )
700+ {
698701 std::cerr << " libusb_detach_kernel_driver failed with " << r << endl;
699702 closeHandle ();
700703 teardown ();
You can’t perform that action at this time.
0 commit comments