Browse Source

wdsp/nob: Initialize NOB state

Initialize NOB state members in the constructor initializer list.

Found by cppcheck.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
chirpmodem-v8.0.0
Robin Getz 2 months ago
parent
commit
dd8ef39b5e
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 17
      wdsp/nob.cpp

17
wdsp/nob.cpp

@ -96,8 +96,23 @@ NOB::NOB ( @@ -96,8 +96,23 @@ NOB::NOB (
hangslewtime(_hangslewtime),
hangtime(_hangtime),
max_imp_seq_time(_max_imp_seq_time),
filterlen(0),
backtau(_backtau),
threshold(_threshold)
threshold(_threshold),
time(0),
blank_count(0),
I1(0),
Q1(0),
I2(0),
Q2(0),
I(0),
Q(0),
Ilast(0),
Qlast(0),
deltaI(0),
deltaQ(0),
Inext(0),
Qnext(0)
{
dline_size = (int)(MAX_SAMPLERATE * (
MAX_ADV_SLEW_TIME +

Loading…
Cancel
Save