Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/pbio/drv/usb/usb_ev3.c
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ static pbio_error_t pbdrv_usb_ev3_process_thread(pbio_os_state_t *state, void *c
prev_status_flags = ~0;
}
} else if (!was_transmitting && is_transmitting) {
pbio_os_timer_set(&tx_timeout_timer, 5);
pbio_os_timer_set(&tx_timeout_timer, 50);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... EV3 seems to need an even longer timeout. I wonder if this means there is something else blocking this from updating or if the app really is taking that long to service the IN endpoint.

}
was_transmitting = is_transmitting;

Expand Down
2 changes: 1 addition & 1 deletion lib/pbio/drv/usb/usb_stm32.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ PROCESS_THREAD(pbdrv_usb_process, ev, data) {
if (transmitting) {
// If the FIFO isn't emptied quickly, then there probably isn't an
// app anymore. This timer is used to detect such a condition.
etimer_set(&transmit_timer, 5);
etimer_set(&transmit_timer, 50);
}
}

Expand Down