mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-23 22:43:49 +00:00
Merge pull request #231 from xobs/fix-fomu-out-rx
valentyusb: eptri: don't double-advance read buffer
This commit is contained in:
commit
97b90b6fc9
@ -226,7 +226,7 @@ static void process_rx(void) {
|
||||
test_buffer[total_read] = c;
|
||||
#endif
|
||||
total_read++;
|
||||
if ((rx_buffer_offset[rx_ep] + current_offset) < rx_buffer_max[rx_ep]) {
|
||||
if (current_offset < rx_buffer_max[rx_ep]) {
|
||||
#if LOG_USB
|
||||
usb_log[usb_log_offset].data[usb_log[usb_log_offset].size++] = c;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user