debug: 在 WCHNET_HandleGlobalInt 中打印 socket 中断信息
添加 SockInt: sock=%d stat=0x%02X 日志,用于诊断为何 client 连接成功后 CONNECT 事件未被处理
This commit is contained in:
@@ -1075,10 +1075,12 @@ 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user