summaryrefslogtreecommitdiff
path: root/gr-digital/python/packet_utils.py
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2011-07-24 17:46:07 -0400
committerTom Rondeau <trondeau@vt.edu>2011-07-24 17:46:07 -0400
commit59c20a3fbdb0860ab4d8a14eb39980a6c46087f7 (patch)
treecc839cb596efd4c121d47318584d201b54fb420b /gr-digital/python/packet_utils.py
parent199ab116e54a5d8b8bf82d0d18569ccfe2114fd8 (diff)
digital: modifications to make Python scripts in digital usable.
Diffstat (limited to 'gr-digital/python/packet_utils.py')
-rw-r--r--gr-digital/python/packet_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-digital/python/packet_utils.py b/gr-digital/python/packet_utils.py
index e36b05413e..addbf43f57 100644
--- a/gr-digital/python/packet_utils.py
+++ b/gr-digital/python/packet_utils.py
@@ -22,7 +22,7 @@
import struct
import numpy
from gnuradio import gru
-
+import crc
def conv_packed_binary_string_to_1_0_string(s):
"""
@@ -127,7 +127,7 @@ def make_packet(payload, samples_per_symbol, bits_per_symbol,
(packed_access_code, padded) = conv_1_0_string_to_packed_binary_string(access_code)
(packed_preamble, ignore) = conv_1_0_string_to_packed_binary_string(preamble)
- payload_with_crc = gru.gen_and_append_crc32(payload)
+ payload_with_crc = crc.gen_and_append_crc32(payload)
#print "outbound crc =", string_to_hex_list(payload_with_crc[-4:])
L = len(payload_with_crc)