Fix phy_data idVendor/idProduct when not set.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
afe2b28fab
commit
d63ed56e0e
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue