Skip to content

Commit

Permalink
call event loop of tinyusb while waiting for sending
Browse files Browse the repository at this point in the history
  • Loading branch information
z4yx committed Jun 9, 2024
1 parent c6afd6f commit 7e4fcb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions interfaces/USB/class/ccid/ccid.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ uint8_t CCID_Response_SendData(const uint8_t *buf, uint16_t len, uint8_t is_time
return 0;
else
device_delay(1);
tud_task_ext(0, false);
}
if (is_time_extension_request)
bulkin_state = CCID_STATE_DATA_IN_TIME_EXTENSION;
Expand Down
1 change: 1 addition & 0 deletions interfaces/USB/class/ctaphid/ctaphid.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ void CTAPHID_SendReport(uint8_t *report, uint16_t len) {
return;
}

tud_task_ext(0, false);
device_delay(1);
}

Expand Down

0 comments on commit 7e4fcb2

Please sign in to comment.