Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed Apr 2, 2024
1 parent 7d3d60f commit 172c9f7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/portable/analog/max3421/hcd_max3421.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ enum {

enum {
EP_STATE_IDLE = 0,
EP_STATE_COMPLETE,
EP_STATE_ATTEMPT_1, // pending 1st attempt
EP_STATE_COMPLETE = 1,
EP_STATE_ATTEMPT_1 = 2, // pending 1st attempt
EP_STATE_ATTEMPT_MAX = 15
};

Expand Down Expand Up @@ -465,7 +465,6 @@ bool hcd_init(uint8_t rhport) {
tuh_max3421_int_api(rhport, false);

TU_LOG2_INT(sizeof(max3421_ep_t));
TU_LOG2_INT(sizeof(atomic_flag));
TU_LOG2_INT(sizeof(max3421_data_t));
TU_LOG2_INT(offsetof(max3421_data_t, ep));

Expand Down Expand Up @@ -873,7 +872,9 @@ static void handle_xfer_done(uint8_t rhport, bool in_isr) {

if (ep_dir) {
// IN transfer: fifo data is already received in RCVDAV IRQ
if ( hxfr_type & HXFR_HS ) {

// mark control handshake as complete
if (hxfr_type & HXFR_HS) {
ep->state = EP_STATE_COMPLETE;
}

Expand Down

0 comments on commit 172c9f7

Please sign in to comment.