Skip to content

Commit c99af90

Browse files
committed
fix typo
1 parent 2d53612 commit c99af90

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/tusb.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ bool stream_xfer(tu_edpt_stream_t* s, uint16_t count)
253253
}else
254254
{
255255
#if CFG_TUD_ENABLED
256-
return usbd_edpt_xfer(s->rhport, s->ep_addr, cont ? s->ep_buf : NULL, count);
256+
return usbd_edpt_xfer(s->rhport, s->ep_addr, count ? s->ep_buf : NULL, count);
257257
#endif
258258
}
259259

@@ -366,7 +366,6 @@ uint32_t tu_edpt_stream_read_xfer(tu_edpt_stream_t* s)
366366
{
367367
// Release endpoint since we don't make any transfer
368368
stream_release(s);
369-
370369
return 0;
371370
}
372371
}

0 commit comments

Comments
 (0)