diff options
| author | Ha Thach <[email protected]> | 2021-01-25 17:18:24 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-25 17:18:24 +0700 |
| commit | c43ac7f1d79b25dae2d5ab073dc7d397fd9dedec (patch) | |
| tree | 8086106787ab4b044deca2a5682d74e2f09eec1d /src/host | |
| parent | 469ca2f1559800f4b1eabc860336ff33ed118718 (diff) | |
| parent | 6e027b1c4b454a573c6bcb9599d016d98bb6d05a (diff) | |
Merge pull request #603 from hathach/pico-followup
Pico followup for (ci) building examples
Diffstat (limited to 'src/host')
| -rw-r--r-- | src/host/usbh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c index 10ae991f4..f278f4d94 100644 --- a/src/host/usbh.c +++ b/src/host/usbh.c @@ -153,7 +153,7 @@ tusb_device_state_t tuh_device_get_state (uint8_t const dev_addr) tusb_speed_t tuh_device_get_speed (uint8_t const dev_addr) { - TU_ASSERT( dev_addr <= CFG_TUSB_HOST_DEVICE_MAX, TUSB_DEVICE_STATE_UNPLUG); + TU_ASSERT( dev_addr <= CFG_TUSB_HOST_DEVICE_MAX, TUSB_SPEED_INVALID); return (tusb_speed_t) _usbh_devices[dev_addr].speed; } |
