gnuradio/gnuradio — pull request #120 by mmaroti (2013-12-16 17:58:13+00:00)
Title: soft decoding: fix calc_soft_dec() crash dute to uninitialized pre_diff_...

The constellation soft decoder crashes with this test script, the patch fixes this by checking whether the pre_diff_code is initialized.

------------
#!/usr/bin/env python

from gnuradio import gr, blocks, digital, analog

con = digital.constellation_bpsk()
# con = digital.constellation_qpsk()

top = gr.top_block()
top.connect(analog.fastnoise_source_c(analog.GR_GAUSSIAN, 1.0),
digital.constellation_soft_decoder_cf(con.base()),
blocks.null_sink(gr.sizeof_float))

top.run()
--------------