summaryrefslogtreecommitdiff
path: root/gr-msdd6000/src/msdd_source_simple.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-msdd6000/src/msdd_source_simple.cc')
-rw-r--r--gr-msdd6000/src/msdd_source_simple.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gr-msdd6000/src/msdd_source_simple.cc b/gr-msdd6000/src/msdd_source_simple.cc
index 076a305f1..20b15c43d 100644
--- a/gr-msdd6000/src/msdd_source_simple.cc
+++ b/gr-msdd6000/src/msdd_source_simple.cc
@@ -64,7 +64,9 @@ msdd_source_simple::work (int noutput_items,
char buffer[BUF_LEN];
rcv->read( &buffer[0], BUF_LEN );
- int seq = *((int*) &buffer[2]);
+ //int seq = *((int*) &buffer[2]);
+ int seq;
+ memcpy(&seq, &buffer[2], 4*sizeof(char));
if(d_lastseq == -MSDD_COMPLEX_SAMPLES_PER_PACKET){
// not started case