diff -r 22de2e391156 -r 20ac952a623c bluetooth/btstack/rfcomm/Rfcommfcs.cpp --- a/bluetooth/btstack/rfcomm/Rfcommfcs.cpp Thu Sep 23 17:06:47 2010 +0300 +++ b/bluetooth/btstack/rfcomm/Rfcommfcs.cpp Wed Oct 13 16:20:29 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 1999-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -63,7 +63,7 @@ } TBool CheckFCS(const TUint8* aData, TInt aLen, TUint8 aFCS) - /** + /** Check a received FCS. **/ { @@ -72,22 +72,9 @@ { fcs=crctable[fcs^*aData++]; } - /*Ones complement*/ + /*Ones complement*/ fcs=crctable[fcs^aFCS]; -// log "PDU FCS:" aFCS - Shehla - RFQBLOG(KBlogTypeFCS, Log(KBlogActualFCS, aFCS)); -// log this as "Calculated FCS (should be 0xCF): " fcs - Shehla - RFQBLOG(KBlogTypeFCS, Log(KBlogComputedFCS, fcs)); - /*0xCF is the reversed order of 11110011.*/ - TBool result=EFalse; //- Shehla - if (fcs==0xCF) - //return ETrue; - result=ETrue; - else - //return EFalse; - result=EFalse; -//log "FCS Computation" result - Shehla - RFQBLOG(KBlogTypeFCS, Log(KBlogComparedFCS, result)); - + /*0xCF is the reversed order of 11110011.*/ + TBool result = (fcs==0xCF); return result; }