| 232 | } |
| 233 | |
| 234 | UsbControl::ResultCode UsbControl::releaseInterfaces() |
| 235 | { |
| 236 | UsbControl::ResultCode code = Success; |
| 237 | int r; |
| 238 | |
| 239 | r = libusb_release_interface(handle_, ControlAndRgbInterfaceId); |
| 240 | CHECK_LIBUSB_RESULT(code, r) << "failed to release interface with ControlAndRgbInterfaceId(="<< ControlAndRgbInterfaceId << ")! " << WRITE_LIBUSB_ERROR(r); |
| 241 | |
| 242 | if(code == Success) |
| 243 | { |
| 244 | r = libusb_release_interface(handle_, IrInterfaceId); |
| 245 | CHECK_LIBUSB_RESULT(code, r) << "failed to release interface with IrInterfaceId(="<< IrInterfaceId << ")! " << WRITE_LIBUSB_ERROR(r); |
| 246 | } |
| 247 | |
| 248 | return code; |
| 249 | } |
| 250 | |
| 251 | UsbControl::ResultCode UsbControl::setIsochronousDelay() |
| 252 | { |