Fix phy_data idVendor/idProduct when not set.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2025-09-28 20:24:07 +02:00
parent afe2b28fab
commit d63ed56e0e
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -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);