debug: 在 WCHNET_HandleGlobalInt 中打印 socket 中断信息

添加 SockInt: sock=%d stat=0x%02X 日志,用于诊断为何
client 连接成功后 CONNECT 事件未被处理
This commit is contained in:
wangfq
2026-07-01 14:02:10 +08:00
parent 157ff48835
commit 32d613a54f

View File

@@ -1075,11 +1075,13 @@ void WCHNET_HandleGlobalInt(void)
{ {
for (i = 0; i < WCHNET_MAX_SOCKET_NUM; i++) { for (i = 0; i < WCHNET_MAX_SOCKET_NUM; i++) {
socketint = WCHNET_GetSocketInt(i); socketint = WCHNET_GetSocketInt(i);
if (socketint) if (socketint) {
PRINT("SockInt: sock=%d stat=0x%02X\n", i, socketint);
WCHNET_HandleSockInt(i, socketint); WCHNET_HandleSockInt(i, socketint);
} }
} }
} }
}