Fix wrong size passed to calculate buffer offset (as in 72f62dcd82)

This commit is contained in:
zykrahgaming 2021-12-30 17:47:24 +11:00
parent a1ea0a7fcc
commit da3127bcaf
1 changed files with 1 additions and 1 deletions

View File

@ -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;