From eb4ffba9f16634e6f8144b9e85a0291e1cb8dfba Mon Sep 17 00:00:00 2001 From: QuakeGod <QuakeGod@sina.com> Date: 星期一, 17 十月 2022 23:04:14 +0800 Subject: [PATCH] fix KNet --- Inc/KLink.h | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Inc/KLink.h b/Inc/KLink.h index ead7ddb..edf976c 100644 --- a/Inc/KLink.h +++ b/Inc/KLink.h @@ -28,8 +28,8 @@ } ; -enum {KLSignStart='%', - KLSignReply='U', +enum {KLSignStart='%', //0x25 + KLSignReply='U', //0x55 KLSignEnd=0x0D, KLMaxPacketLength=64, }; @@ -228,10 +228,10 @@ int KLMakeRplyPacket(void * pBuf1, uchar Dst, uchar Status, uchar nCmd, uchar DataLen, const void *pData ); /* */ -int KLCheckPacket(void * pBuf1,int len1); +int KLCheckPacket(int nChn, void * pBuf1, int len1); /* */ -int KLParsePacket(void * pBuf1, int Len1); +int KLParsePacket(int nChn, void * pBuf1, int Len1); //int ReadData(void); -- Gitblit v1.9.1