From d63ed56e0ed26163772410bd29127fb91898adc0 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Sun, 28 Sep 2025 20:24:07 +0200 Subject: [PATCH] Fix phy_data idVendor/idProduct when not set. Signed-off-by: Pol Henarejos --- src/usb/usb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/usb/usb.c b/src/usb/usb.c index b4d8b40..6cdedc5 100644 --- a/src/usb/usb.c +++ b/src/usb/usb.c @@ -78,6 +78,10 @@ void usb_init() { desc_device.idVendor = phy_data.vid; desc_device.idProduct = phy_data.pid; } + else { + phy_data.vid = desc_device.idVendor; + phy_data.pid = desc_device.idProduct; + } mutex_init(&mutex); #endif queue_init(&card_to_usb_q, sizeof(uint32_t), 64);