Skip to content

Commit

Permalink
ibmpc_usb: Increase timeout to 10ms
Browse files Browse the repository at this point in the history
  • Loading branch information
tmk committed Nov 18, 2024
1 parent 57fbfa4 commit 3c7ca5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tmk_core/protocol/ibmpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ void IBMPC::isr(void)
if (isr_state == 0x8000) {
timer_start = t;
} else {
// This gives 2.0ms at least before timeout
if ((uint8_t)(t - timer_start) >= 5) {
// This gives 10ms at least before timeout
if ((uint8_t)(t - timer_start) > 10) {
isr_debug = isr_state;
error = IBMPC_ERR_TIMEOUT;
goto ERROR;
Expand Down

0 comments on commit 3c7ca5b

Please sign in to comment.