Skip to content

Commit

Permalink
FFTviewer: fix channel measurement for chB in MIMO mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignas J committed Jun 7, 2019
1 parent 8e57223 commit 4ab24db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fftviewer_wxgui/fftviewer_frFFTviewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,11 @@ void fftviewer_frFFTviewer::OnUpdatePlots(wxThreadEvent& event)
float fn = (cFreq[c] + bw[c]/2) * 1e6;
float sum = 0;
int bins = 0;
const int lmsch = mFFTpanel->series[0]->visible ? 0 : 1;
for (int i = 0; i<fftSize; ++i)
if (f0 <= fftFreqAxis[i] && fftFreqAxis[i] <= fn)
{
sum += streamData.fftBins[0][i];
sum += streamData.fftBins[lmsch][i];
++bins;
}
chPwr[c] = sum;
Expand Down

0 comments on commit 4ab24db

Please sign in to comment.