aboutsummaryrefslogtreecommitdiffstats
path: root/op25
diff options
context:
space:
mode:
authorMax <ikj1234i@yahoo.com>2017-11-22 18:57:41 -0500
committerMax <ikj1234i@yahoo.com>2017-11-22 18:57:41 -0500
commitd6f3be0604fa6e63c582a97ce61440cba59a5455 (patch)
treeaf42eb83e2085b347398e4b5084a54b9dd45af18 /op25
parent2d52d95a0a6e7709253aaf0c94ab20fb9f9db294 (diff)
bugfix: uninitialized struct in d2460.cc
Diffstat (limited to 'op25')
-rw-r--r--op25/gr-op25_repeater/lib/d2460.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/op25/gr-op25_repeater/lib/d2460.cc b/op25/gr-op25_repeater/lib/d2460.cc
index 655d6de..bf796b8 100644
--- a/op25/gr-op25_repeater/lib/d2460.cc
+++ b/op25/gr-op25_repeater/lib/d2460.cc
@@ -39,6 +39,7 @@ static software_imbe_decoder software_decoder;
static p25p2_vf interleaver;
static mbe_parms cur_mp;
static mbe_parms prev_mp;
+static mbe_parms enh_mp;
static const Uns DV3K_START_BYTE = 0x61;
enum
@@ -142,6 +143,7 @@ static void vocoder_setup(void) {
encoder.set_dstar_mode();
encoder.set_gain_adjust(GAIN_ADJUST);
encoder.set_alt_dstar_interleave(true);
+ mbe_initMbeParms (&cur_mp, &prev_mp, &enh_mp);
}
static void dump(unsigned char *p, ssize_t n)