From 65a826bd463d6f7630d9e40fc1679b1cbe59ad55 Mon Sep 17 00:00:00 2001 From: true Date: Fri, 25 Oct 2024 23:14:39 -0700 Subject: [PATCH] fix set sub MCU interrupt clear --- nametag8_CH592/user/hw/ch32sub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nametag8_CH592/user/hw/ch32sub.c b/nametag8_CH592/user/hw/ch32sub.c index c74f731..c0b7c95 100644 --- a/nametag8_CH592/user/hw/ch32sub.c +++ b/nametag8_CH592/user/hw/ch32sub.c @@ -87,7 +87,7 @@ void ch32sub_process() for (i = 0; i < 8; i++) { if (flags & (1 << i)) { if (intr_cb[i]) { - clear |= (i << 1); + clear |= (1 << i); intr_cb[i](); } else {