summaryrefslogtreecommitdiff
path: root/AT91SAM7S256/Source/d_bt.r
diff options
context:
space:
mode:
authortcsadmin2010-10-13 16:53:26 +0000
committerNicolas Schodet2011-07-04 00:37:03 +0200
commitc41dd0a02d4d92af0ba337fa530c58be6cceb5b4 (patch)
treecb64288d7249d137b3425d43fcc43374488e012a /AT91SAM7S256/Source/d_bt.r
parent5b2218485038b329377c6a83bd36bf5df1c43549 (diff)
Changes to support raw/gps bluetooth data mode
git-svn-id: https://mindboards.svn.sourceforge.net/svnroot/mindboards/lms_nbcnxc_128/trunk@19 c9361245-7fe8-9947-84e8-057757c4e366
Diffstat (limited to 'AT91SAM7S256/Source/d_bt.r')
-rw-r--r--AT91SAM7S256/Source/d_bt.r7
1 files changed, 6 insertions, 1 deletions
diff --git a/AT91SAM7S256/Source/d_bt.r b/AT91SAM7S256/Source/d_bt.r
index 0e9944e..76c079b 100644
--- a/AT91SAM7S256/Source/d_bt.r
+++ b/AT91SAM7S256/Source/d_bt.r
@@ -219,7 +219,7 @@ static UWORD RemainingLength;
}
-#define BTReceivedData(pByteCnt, pToGo)\
+#define BTReceivedData(pByteCnt, pToGo, noLenBytes)\
{\
UWORD InCnt, Cnt;\
*pByteCnt = 0;\
@@ -229,6 +229,11 @@ static UWORD RemainingLength;
{\
InCnt = SIZE_OF_INBUF;\
}\
+ if (noLenBytes)\
+ {\
+ FullRxLength = InCnt;\
+ RemainingLength = InCnt;\
+ }\
InCnt -= InBufOutCnt; /* Remove already read bytes */\
if (InCnt)\
{\