Minor changes to reflect original files

This commit is contained in:
jochen@g14
2024-03-30 23:27:33 +01:00
parent 0674e7f61c
commit 6d8f85c154
4 changed files with 6 additions and 6 deletions

View File

@@ -26,6 +26,7 @@ impl USBRaw {
fn get_dev_handle(
device: &Device<rusb::GlobalContext>,
) -> Result<DeviceHandle<rusb::GlobalContext>> {
// We don't expect this ID to ever change
let mut device = device.open()?;
device.reset()?;
device.set_auto_detach_kernel_driver(true)?;