diff --git a/plugins/channelrx/channelpower/channelpowergui.cpp b/plugins/channelrx/channelpower/channelpowergui.cpp index 2ef3f9398..dd83e053c 100644 --- a/plugins/channelrx/channelpower/channelpowergui.cpp +++ b/plugins/channelrx/channelpower/channelpowergui.cpp @@ -371,12 +371,11 @@ void ChannelPowerGUI::tick() double magAvg, magPulseAvg, magMaxPeak, magMinPeak; m_channelPower->getMagLevels(magAvg, magPulseAvg, magMaxPeak, magMinPeak); - double powDbAvg, powDbPulseAvg, powDbMaxPeak, powDbMinPeak, powDbPathLoss; + double powDbAvg, powDbPulseAvg, powDbMaxPeak, powDbMinPeak; powDbAvg = std::numeric_limits::quiet_NaN(); powDbPulseAvg = std::numeric_limits::quiet_NaN(); powDbMaxPeak = std::numeric_limits::quiet_NaN(); powDbMinPeak = std::numeric_limits::quiet_NaN(); - powDbPathLoss = std::numeric_limits::quiet_NaN(); const int precision = 2; diff --git a/sdrbase/util/db.h b/sdrbase/util/db.h index 298ae2563..8a2dce902 100644 --- a/sdrbase/util/db.h +++ b/sdrbase/util/db.h @@ -26,7 +26,7 @@ class SDRBASE_API CalcDb { public: - static double dbPower(double magsq, double floor = 1e-12); + static double dbPower(double magsq, double floor = 1e-15); // Floor at -150dB static double powerFromdB(double powerdB); static double frexp10(double arg, int *exp); };