VS2019 fixes.

This commit is contained in:
Jonathan Naylor
2020-05-09 12:41:37 +01:00
parent 2a8e1ce9f4
commit 467140dbf8
3 changed files with 10 additions and 4 deletions

View File

@@ -66,9 +66,8 @@ bool CFMControl::writeModem(const unsigned char* data, unsigned int length)
}
// De-emphasise the data and any other processing needed (maybe a low-pass filter to remove the CTCSS)
for(unsigned int i = 0U; i < nSamples; i++) {
for (unsigned int i = 0U; i < nSamples; i++)
samples[i] = m_deemphasis.filter(samples[i]);
}
unsigned char out[350U];
unsigned int nOut = 0U;
@@ -104,9 +103,8 @@ unsigned int CFMControl::readModem(unsigned char* data, unsigned int space)
}
// Pre-emphasise the data and other stuff.
for(unsigned int i = 0U; i < nSamples; i++) {
for (unsigned int i = 0U; i < nSamples; i++)
samples[i] = m_preemphasis.filter(samples[i]);
}
// Pack the floating point data (+1.0 to -1.0) to packed 12-bit samples (+2047 - -2048)
unsigned int pack = 0U;