summaryrefslogtreecommitdiff
path: root/src/portable
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2025-11-09 00:26:04 +0700
committerGitHub <[email protected]>2025-11-09 00:26:04 +0700
commit96f35fc0a559aa09da70e0dede5a43081615723f (patch)
tree8ed03653c36a3c9e84c9463aa729d1de4d3af2d7 /src/portable
parent91c3a4fa8d1a88880f262b2a3a227374128de3f3 (diff)
parent7f173ab5ed6a80a5fd6780779fe63fb97d2be0e9 (diff)
Merge pull request #3334 from hathach/fix-alerts-3
Fix more code alerts
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/ehci/ehci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/ehci/ehci.c b/src/portable/ehci/ehci.c
index 973bb43cc..c33c970e4 100644
--- a/src/portable/ehci/ehci.c
+++ b/src/portable/ehci/ehci.c
@@ -920,7 +920,7 @@ static void qhd_init(ehci_qhd_t *p_qhd, uint8_t dev_addr, tusb_desc_endpoint_t c
// sub millisecond interval
p_qhd->interval_ms = 0;
p_qhd->int_smask = (interval == 1) ? 0xff : // 0b11111111
- (interval == 2) ? 0xaa /* 0b10101010 */ : 0x44 /* 01000100 */;
+ (interval == 2) ? 0xaa /* 0b10101010 */ : 0x44 /* 0b01000100 */;
} else {
p_qhd->interval_ms = (uint8_t) tu_min16(1 << (interval - 4), 255);
p_qhd->int_smask = TU_BIT(interval % 8);