summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-04-04 12:51:07 +0700
committerhathach <[email protected]>2024-04-04 12:51:07 +0700
commit93fb3b00debc613f631cb6ec848bfcb9231a325c (patch)
treef736bf51798e23328133611de073345963333dbb /src
parent7910cc298187327e05c43770b58eac528a4fecfa (diff)
fix build with gcc 11
Diffstat (limited to 'src')
-rw-r--r--src/portable/analog/max3421/hcd_max3421.c2
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;