spectrum: Call CalcRxPowerSpectralDensity recursively

This commit is contained in:
Alexander Krotov
2017-04-28 16:53:51 +03:00
parent 8cfc0f1b40
commit 4fa9b44a3c

View File

@@ -68,7 +68,7 @@ SpectrumPropagationLossModel::CalcRxPowerSpectralDensity (Ptr<const SpectrumValu
Ptr<SpectrumValue> rxPsd = DoCalcRxPowerSpectralDensity (txPsd, a, b);
if (m_next != 0)
{
rxPsd = m_next->DoCalcRxPowerSpectralDensity (rxPsd, a, b);
rxPsd = m_next->CalcRxPowerSpectralDensity (rxPsd, a, b);
}
return rxPsd;
}