From 773657feb303f27f0c96e3395b302207b71141f2 Mon Sep 17 00:00:00 2001 From: Artem Egorkine Date: Sat, 9 Nov 2024 17:49:50 +0200 Subject: [PATCH] USB: fix enumeration code The devices added in the enumeration run were not correctly added to the output of the enumeration function. --- usb/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usb/src/lib.rs b/usb/src/lib.rs index 68cc0cb..627888e 100644 --- a/usb/src/lib.rs +++ b/usb/src/lib.rs @@ -203,7 +203,7 @@ fn usb_enumerate_devices(devices: &mut HashMap) -> Vec { h } Err(e) => { error!("Filed to initialize device {:?}: {}", usb_dev.name, e); @@ -212,7 +212,8 @@ fn usb_enumerate_devices(devices: &mut HashMap) -> Vec { enumerated.push(UsbEnumeratedDevice::Device(dev.clone()))