Skip to content

Commit 5cf081b

Browse files
committed
typo fix
Signed-off-by: Mengsk <admin@hifiphile.com>
1 parent 929254b commit 5cf081b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/device/usbd_control.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ bool usbd_control_xfer_cb(uint8_t rhport, uint8_t ep_addr, xfer_result_t result,
179179
// Data Stage is complete when all request's length are transferred or
180180
// a short packet is sent including zero-length packet.
181181
if ((_ctrl_xfer.request.wLength == _ctrl_xfer.total_xferred) ||
182-
(xferred_bytes < CFG_TUD_EP0_BUFSIZE)) {
182+
(xferred_bytes < CFG_TUD_ENDPOINT0_SIZE)) {
183183
// DATA stage is complete
184184
bool is_ok = true;
185185

0 commit comments

Comments
 (0)