Skip to content

Commit

Permalink
Fix windows compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
rjonaitis committed Feb 23, 2024
1 parent 0ec8f64 commit 281c787
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/DSP/FFT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ void FFT::ProcessLoop()
if (resultsCallback)
{
// to log scale
for (uint i = 0; i < fftBins.size(); ++i)
for (size_t i = 0; i < fftBins.size(); ++i)
avgOutput[i] = sqrt(avgOutput[i] / avgCount);
for (uint i = 0; i < fftBins.size(); ++i)
for (size_t i = 0; i < fftBins.size(); ++i)
{
fftBins[i] = avgOutput[i] > 0 ? 10 * log10(avgOutput[i]) : -150;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lms7002m/LMS7002M_validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ bool LMS7002M_Validate(const SDRDevice::SDRConfig& cfg, std::vector<std::string>
errors.push_back(strFormat("Tx ch%i LO (%g) out of range [%g:%g]", i, ch.tx.centerFrequency, minLO, maxLO));

// TODO: make warning if rx loopback selection does not work with tx output
if (ch.rx.enabled && not InRange(ch.rx.path, 0, 5))
if (ch.rx.enabled && !InRange(ch.rx.path, 0, 5))
errors.push_back(strFormat("Rx ch%i invalid path(%i)", i, ch.rx.path));

if (ch.tx.enabled && !InRange(ch.tx.path, 0, 2))
Expand Down

0 comments on commit 281c787

Please sign in to comment.