hacky, but ftdi work with hard code baudrate = 9600

This commit is contained in:
hathach
2023-04-26 12:43:46 +07:00
parent 1a229f3ce2
commit 45169d833d
5 changed files with 549 additions and 83 deletions

View File

@@ -286,7 +286,7 @@ bool tuh_vid_pid_get(uint8_t dev_addr, uint16_t* vid, uint16_t* pid)
*vid = *pid = 0;
usbh_device_t const* dev = get_device(dev_addr);
TU_VERIFY(dev && dev->configured);
TU_VERIFY(dev && dev->addressed && dev->vid != 0);
*vid = dev->vid;
*pid = dev->pid;