Skip to content

Commit

Permalink
Fix wrong size passed to calculate buffer offset
Browse files Browse the repository at this point in the history
  • Loading branch information
hanya committed Sep 22, 2021
1 parent f3c9ee7 commit 72f62dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion os/hal/ports/RP/LLD/USBDv1/hal_usb_lld.c
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ void usb_lld_init_endpoint(USBDriver *usbp, usbep_t ep) {
} else {
buf_size = 64;
}
buf_offset = usb_buffer_next_offset(usbp, buf_offset, false);
buf_offset = usb_buffer_next_offset(usbp, buf_size, false);
epcp->out_state->hw_buf = (uint8_t*)&USB_DPSRAM->DATA[buf_offset];
epcp->out_state->buf_size = buf_size;

Expand Down

0 comments on commit 72f62dc

Please sign in to comment.