From 842bb64195f958b050867c50db66fc0aa413dafb Mon Sep 17 00:00:00 2001
From: QuakeGod <quakegod@sina.com>
Date: 星期六, 27 七月 2024 10:42:56 +0800
Subject: [PATCH] KBus upgrade

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

diff --git a/ComLib/Src/MyQueue.c b/ComLib/Src/MyQueue.c
index 4481ea5..f90e2bc 100644
--- a/ComLib/Src/MyQueue.c
+++ b/ComLib/Src/MyQueue.c
@@ -13,19 +13,19 @@
 		theQueue->Caps=nSize;
 		theQueue->wp=0;
 		theQueue->rp=0;
-		theQueue->RecvBytes=0;
+//		theQueue->RecvBytes=0;
+		//theQueue->state=0;		
 		theQueue->bFull=0;
 		theQueue->bEmpty=1;
-		theQueue->state=0;		
 			return 0;
 	}
 	int EmptyQueue(stMyQueue * theQueue)
 	{
 		theQueue->wp=0;
 		theQueue->rp=0;
+		//theQueue->state=0;		
 		theQueue->bFull=0;
 		theQueue->bEmpty=1;
-		theQueue->state=0;		
 		return 0;
 	}
 	int GetContinueEmptyRoom(stMyQueue * theQueue)
@@ -75,7 +75,7 @@
 		theQueue->bEmpty=0;
 		if (wp == theQueue->rp) theQueue->bFull=1;
 		theQueue->wp = wp;
-		theQueue->RecvBytes+=nSize;
+//		theQueue->RecvBytes+=nSize;
 		return nSize;
 	}
 	
@@ -88,10 +88,10 @@
 		theQueue->rp = rp;
 		if (rp == theQueue->wp)
 		{			
-			theQueue->bEmpty=1;
 			theQueue->wp=0;
 			theQueue->rp=0;
-			theQueue->state=0;					
+//			theQueue->state=0;					
+			theQueue->bEmpty=1;
 		}
 		return nSize;
 	}

--
Gitblit v1.9.1