mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-21 12:40:51 +00:00
improved code readability
This commit is contained in:
parent
f3fccaad26
commit
79bc09a68c
@ -828,7 +828,7 @@ static void handle_xfer_done(uint8_t rhport, bool in_isr) {
|
||||
putchar(ep->ep_dir ? 'n' : 'N');
|
||||
putchar('0' + ep->daddr);
|
||||
// putchar('0' + ep->ep_num);
|
||||
// putchar('0' + ep->xfer_attemp);
|
||||
putchar('0' + ep->state);
|
||||
#endif
|
||||
if (ep_num == 0) {
|
||||
// NAK on control, retry immediately
|
||||
@ -953,11 +953,6 @@ void hcd_int_handler(uint8_t rhport, bool in_isr) {
|
||||
max3421_ep_t * ep = &_hcd_data.ep[i];
|
||||
// set retryable EPs to pending
|
||||
if (ep->state == EP_STATE_SUSPENDED) {
|
||||
#if PUTCHAR_LOGS // TODO to be deleted later
|
||||
putchar(ep->ep_dir ? 'r' : 'R');
|
||||
putchar('0' + ep->daddr);
|
||||
// putchar('0' + ep->ep_num);
|
||||
#endif
|
||||
ep->state = EP_STATE_PENDING;
|
||||
// trigger 1st retryable EP
|
||||
if (ep->packet_size) { // first test packet_size before atomic_flag_test_and_set()
|
||||
|
Loading…
x
Reference in New Issue
Block a user