From db25c9f050a690bbec032ef3f93e244c7ec2dbee Mon Sep 17 00:00:00 2001
From: QuakeGod <quakegod@sina.com>
Date: 星期五, 26 五月 2023 09:30:59 +0800
Subject: [PATCH] PLCFunction fix2

---
 Src/KBus.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/Src/KBus.c b/Src/KBus.c
index f51509d..2cf3391 100644
--- a/Src/KBus.c
+++ b/Src/KBus.c
@@ -310,9 +310,9 @@
 				}
 #else
 				BufferIn[ChildId]=p1->data[0];
-				KMem.WX[ChildId]=BufferIn[ChildId];
+				KMem.WLX[ChildId]=BufferIn[ChildId];
 				if (KMRunStat.WorkMode==0) {	
-					KMem.WY[0]= KMem.WX[1]+(KMem.WX[2]<<8)	;
+					KMem.WY[0]= KMem.WLX[1]+(KMem.WLX[2]<<8)	;
 					PutOutput (KMem.WY[0]);
 				}
 #endif
@@ -590,11 +590,11 @@
 			if (KMRunStat.WorkMode==0)
 			{
 				KMem.WX[0]= GetInput();
-				KMem.WY[1]=KMem.WX[0]&0xff;
-				KMem.WY[2]=(KMem.WX[0]>>8)&0xff;		
+				KMem.WLY[1]=KMem.WX[0]&0xff;
+				KMem.WLY[2]=(KMem.WX[0]>>8)&0xff;		
 			}
-			BufferOut[1]=KMem.WY[1];
-			BufferOut[2]=KMem.WY[2];		
+			BufferOut[1]=KMem.WLY[1];
+			BufferOut[2]=KMem.WLY[2];		
 #endif
 
 			Datas[0]=BufferOut[nCurPollId];

--
Gitblit v1.9.1