diff options
| author | hichard <[email protected]> | 2019-11-16 11:20:13 +0800 |
|---|---|---|
| committer | hichard <[email protected]> | 2019-11-16 11:20:13 +0800 |
| commit | ec3b4349d30249c1dfd64af19df3af82307ec2dc (patch) | |
| tree | f86f16887433ece993f7c8269ab627b7fbb00aea /components/drivers/usb | |
| parent | aafed7b43455d6e2d66d5e36e8f3d849b677e195 (diff) | |
| parent | 97b7661f6ef902db9b5bc92d384f2944433d0e8f (diff) | |
Merge branch 'master' of https://github.com/RT-Thread/rt-thread into renhaibo-branch
Diffstat (limited to 'components/drivers/usb')
| -rw-r--r-- | components/drivers/usb/usbdevice/class/rndis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/usb/usbdevice/class/rndis.c b/components/drivers/usb/usbdevice/class/rndis.c index ec61234947..93e0ba6ae2 100644 --- a/components/drivers/usb/usbdevice/class/rndis.c +++ b/components/drivers/usb/usbdevice/class/rndis.c @@ -421,7 +421,7 @@ static rt_err_t _rndis_query_response(ufunction_t func,rndis_query_msg_t msg) case OID_GEN_LINK_SPEED: resp = _create_resp(4); if(resp == RT_NULL) break; - _set_resp(resp, func->device->dcd->device_is_hs ? (480UL * 1000 *1000) : (12UL * 1000 * 1000) / 100); + _set_resp(resp, (func->device->dcd->device_is_hs ? (480UL * 1000 *1000) : (12UL * 1000 * 1000)) / 100); break; case OID_GEN_MEDIA_CONNECT_STATUS: |
