diff options
| author | hathach <[email protected]> | 2024-04-04 12:51:07 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-04-04 12:51:07 +0700 |
| commit | 93fb3b00debc613f631cb6ec848bfcb9231a325c (patch) | |
| tree | f736bf51798e23328133611de073345963333dbb | |
| parent | 7910cc298187327e05c43770b58eac528a4fecfa (diff) | |
fix build with gcc 11
| -rw-r--r-- | src/portable/analog/max3421/hcd_max3421.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/analog/max3421/hcd_max3421.c b/src/portable/analog/max3421/hcd_max3421.c index 76c1a150b..059f674cd 100644 --- a/src/portable/analog/max3421/hcd_max3421.c +++ b/src/portable/analog/max3421/hcd_max3421.c @@ -654,7 +654,7 @@ static void xact_generic(uint8_t rhport, max3421_ep_t *ep, bool switch_ep, bool // status if (ep->buf == NULL || ep->total_len == 0) { - uint8_t const hxfr = HXFR_HS | (ep->hxfr_bm.is_out ? HXFR_OUT_NIN : 0); + uint8_t const hxfr = (uint8_t) (HXFR_HS | (ep->hxfr & HXFR_OUT_NIN)); peraddr_write(rhport, ep->daddr, in_isr); hxfr_write(rhport, hxfr, in_isr); return; |
