summaryrefslogtreecommitdiff
path: root/src/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-04-26 12:43:46 +0700
committerhathach <[email protected]>2023-04-26 22:36:17 +0700
commit45169d833d05ec8b64d0ce11a5ff1efbea0b7917 (patch)
tree8fa468081967c4d8d2a4a0a5dcb864abc5362435 /src/host
parent1a229f3ce2623f8e0cf072e66e3770ee7f95e095 (diff)
hacky, but ftdi work with hard code baudrate = 9600
Diffstat (limited to 'src/host')
-rw-r--r--src/host/usbh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c
index 3be662c63..3953d5b21 100644
--- a/src/host/usbh.c
+++ b/src/host/usbh.c
@@ -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;