summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/python/gnuradio/gruimpl/crc.py
diff options
context:
space:
mode:
authortrondeau <trondeau@221aa14e-8319-0410-a670-987f0aec2ac5>2007-08-04 15:21:34 +0000
committertrondeau <trondeau@221aa14e-8319-0410-a670-987f0aec2ac5>2007-08-04 15:21:34 +0000
commit9967e2e7664dbc96a5d1587c194cc648d01cf487 (patch)
treea86af8700d6934f9e5a82011373dd7740b539351 /gnuradio-core/src/python/gnuradio/gruimpl/crc.py
parente1ba40adade7ca7c1d732b4739c3889f2c6fd7a6 (diff)
merged -r5966:6112 on trondeau/ofdm_mod. Allows for generic constellations (supports bpsk, qpsk, 8psk, qam16, qam64, and qam256 currently), fixes some bugs in the correlation and altered default parameters for over-the-air operation. This merge fixes ticket:156 and ticket:157.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@6113 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core/src/python/gnuradio/gruimpl/crc.py')
-rw-r--r--gnuradio-core/src/python/gnuradio/gruimpl/crc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnuradio-core/src/python/gnuradio/gruimpl/crc.py b/gnuradio-core/src/python/gnuradio/gruimpl/crc.py
index ad8ce88793..d31aca0ea7 100644
--- a/gnuradio-core/src/python/gnuradio/gruimpl/crc.py
+++ b/gnuradio-core/src/python/gnuradio/gruimpl/crc.py
@@ -1,5 +1,5 @@
#
-# Copyright 2005 Free Software Foundation, Inc.
+# Copyright 2005,2007 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
@@ -25,7 +25,7 @@ import struct
def gen_and_append_crc32(s):
crc = gr.crc32(s)
- return s + struct.pack(">I", hexint(crc))
+ return s + struct.pack(">I", hexint(crc) & 0xFFFFFFFF)
def check_crc32(s):
if len(s) < 4: