Remove memory leak and other configuration funnies.

This commit is contained in:
Jonathan Naylor 2020-04-25 17:29:10 +01:00
parent 394ab8dfd1
commit 4fe1c11250
3 changed files with 8 additions and 11 deletions

8
FM.cpp
View file

@ -46,11 +46,11 @@ m_rxBoost(1U)
void CFM::samples(bool cos, q15_t* samples, uint8_t length)
{
uint8_t i = 0;
for (; i < length; i++) {
if (!m_useCOS)
cos = true;
if (!m_useCOS)
cos = true;
uint8_t i = 0U;
for (; i < length; i++) {
q15_t currentSample = samples[i];//save to a local variable to avoid indirection on every access
CTCSSState ctcssState = m_ctcssRX.process(currentSample);