mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-04-27 19:23:25 +02:00
Fix phy_data idVendor/idProduct when not set.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user