use new interface to send status in control transfer
This commit is contained in:
parent
96f5a6dcec
commit
58317f5bd2
@ -325,7 +325,7 @@ static rt_err_t _set_config(struct udevice* device, ureq_t setup)
|
||||
}
|
||||
|
||||
/* issue status stage */
|
||||
rt_device_control((rt_device_t)device->dcd, CONTROL_SEND_STATUS, RT_NULL);
|
||||
dcd_send_status(device->dcd);
|
||||
|
||||
return RT_EOK;
|
||||
}
|
||||
@ -350,7 +350,7 @@ static rt_err_t _set_address(struct udevice* device, ureq_t setup)
|
||||
dcd_set_address(device->dcd, setup->value);
|
||||
|
||||
/* issue status stage */
|
||||
rt_device_control((rt_device_t)device->dcd, CONTROL_SEND_STATUS, RT_NULL);
|
||||
dcd_send_status(device->dcd);
|
||||
|
||||
return RT_EOK;
|
||||
}
|
||||
@ -1318,4 +1318,3 @@ rt_err_t rt_usbd_core_init(void)
|
||||
|
||||
return RT_EOK;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user