From 57165329ac2509bf2ec2bfef67fce22409886b31 Mon Sep 17 00:00:00 2001 From: nongxiaoming Date: Wed, 29 Dec 2021 11:06:44 +0800 Subject: [PATCH] [components][usb] fix compile warning in cdc_vcom.c --- components/drivers/usb/usbdevice/class/cdc_vcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/drivers/usb/usbdevice/class/cdc_vcom.c b/components/drivers/usb/usbdevice/class/cdc_vcom.c index 1a24b79f2e..61ab0eebe1 100644 --- a/components/drivers/usb/usbdevice/class/cdc_vcom.c +++ b/components/drivers/usb/usbdevice/class/cdc_vcom.c @@ -738,7 +738,7 @@ static rt_size_t _vcom_rb_block_put(struct vcom *data, const rt_uint8_t *buf, rt return size; } -static rt_size_t _vcom_tx(struct rt_serial_device *serial, rt_uint8_t *buf, rt_size_t size,rt_uint32_t direction) +static rt_size_t _vcom_tx(struct rt_serial_device *serial, rt_uint8_t *buf, rt_size_t size, int direction) { struct ufunction *func; struct vcom *data;