Skip to content

Commit 4416dfa

Browse files
committed
fix(class/cdc/usbd_cdc_ecm): fix missing return
1 parent d874bed commit 4416dfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

class/cdc/usbd_cdc_ecm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ int usbd_cdc_ecm_start_read(uint8_t *buf, uint32_t len)
193193
}
194194

195195
g_cdc_ecm_rx_data_length = 0;
196-
usbd_ep_start_read(0, cdc_ecm_ep_data[CDC_ECM_OUT_EP_IDX].ep_addr, buf, len);
196+
return usbd_ep_start_read(0, cdc_ecm_ep_data[CDC_ECM_OUT_EP_IDX].ep_addr, buf, len);
197197
}
198198

199199
#ifdef CONFIG_USBDEV_CDC_ECM_USING_LWIP

0 commit comments

Comments
 (0)