# HG changeset patch # User Daniel O'Connor # Date 1340176735 -34200 # Node ID 2fde8c382dae0c5707ba6eea0c17dfa0be1af6ac # Parent 387e6e9285679ef0d68d08b060c4dde2d2faa004 SiRF uses a 15 bit checksum, see section 1-2 diff -r 387e6e928567 -r 2fde8c382dae sirf.py --- a/sirf.py Wed Sep 02 17:47:37 2009 +0930 +++ b/sirf.py Wed Jun 20 16:48:55 2012 +0930 @@ -242,7 +242,7 @@ out.append((dlen & 0xff00) >> 8) out.append(dlen & 0xff) out.extend(data) - out.append((cksum & 0xff00) >> 8) + out.append((cksum & 0x7f00) >> 8) # 15 bit checksum out.append(cksum & 0xff) out.extend([0xb0, 0xb3]) return out