Browse Source

wdsprxagcdialog: Initialize WDSP RX AGC dialog state

Initialize the AGC mode, slope, and hang threshold to defined defaults to
resolve the Coverity UNINIT_CTOR warning and ensure deterministic dialog
state.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
chirpmodem-v8.0.0
Robin Getz 3 months ago
parent
commit
e0a658edff
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 5
      plugins/channelrx/wdsprx/wdsprxagcdialog.cpp

5
plugins/channelrx/wdsprx/wdsprxagcdialog.cpp

@ -20,7 +20,10 @@ @@ -20,7 +20,10 @@
WDSPRxAGCDialog::WDSPRxAGCDialog(QWidget* parent) :
QDialog(parent),
ui(new Ui::WDSPRxAGCDialog)
ui(new Ui::WDSPRxAGCDialog),
m_agcMode(WDSPRxProfile::AGCLong),
m_agcSlope(0),
m_agcHangThreshold(0)
{
ui->setupUi(this);
}

Loading…
Cancel
Save