summaryrefslogtreecommitdiff
path: root/gr-digital
diff options
context:
space:
mode:
authorTom Rondeau2012-01-06 14:44:27 -0500
committerTom Rondeau2012-01-06 14:44:27 -0500
commite337d7ce6b89403d68cfe75177811ec23571abe5 (patch)
tree1e8d4336aacf1b8dd4e1920990513c75f1ae54d3 /gr-digital
parentab7cfce4a78dbb95a7c8871f56f4cb037e5b1bb2 (diff)
parent963b3dd91cd2204c601dc6325cc5b159e927054c (diff)
downloadgnuradio-e337d7ce6b89403d68cfe75177811ec23571abe5.tar.gz
gnuradio-e337d7ce6b89403d68cfe75177811ec23571abe5.tar.bz2
gnuradio-e337d7ce6b89403d68cfe75177811ec23571abe5.zip
Merge branch 'maint'
Diffstat (limited to 'gr-digital')
-rw-r--r--gr-digital/lib/digital_constellation.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/gr-digital/lib/digital_constellation.cc b/gr-digital/lib/digital_constellation.cc
index 0c100f38e..d9a53c493 100644
--- a/gr-digital/lib/digital_constellation.cc
+++ b/gr-digital/lib/digital_constellation.cc
@@ -357,10 +357,8 @@ digital_constellation_psk::get_sector (const gr_complex *sample)
float phase = arg(*sample);
float width = M_TWOPI / n_sectors;
int sector = floor(phase/width + 0.5);
- unsigned int u_sector;
if (sector < 0)
sector += n_sectors;
- u_sector = sector;
return sector;
}