| 305 | |
| 306 | |
| 307 | UsbControl::ResultCode UsbControl::getIrMaxIsoPacketSize(int &size) |
| 308 | { |
| 309 | size = 0; |
| 310 | libusb_device *dev = libusb_get_device(handle_); |
| 311 | int r = libusb_ext::get_max_iso_packet_size(dev, 1, 1, 0x84); |
| 312 | |
| 313 | if(r > LIBUSB_SUCCESS) |
| 314 | { |
| 315 | size = r; |
| 316 | r = LIBUSB_SUCCESS; |
| 317 | } |
| 318 | |
| 319 | UsbControl::ResultCode code; |
| 320 | CHECK_LIBUSB_RESULT(code, r) << "failed to get max iso packet size! " << WRITE_LIBUSB_ERROR(r); |
| 321 | return code; |
| 322 | } |
| 323 | |
| 324 | } /* namespace protocol */ |
| 325 | } /* namespace libfreenect2 */ |
no test coverage detected