Minor clean up

This commit is contained in:
Geoffrey Merck 2020-04-21 22:43:59 +02:00
parent 1c599138ad
commit ae6cbcd9e7
1 changed files with 2 additions and 1 deletions

3
FM.cpp
View File

@ -69,8 +69,9 @@ void CFM::samples(bool cos, q15_t* samples, uint8_t length)
q15_t currentSample;
for(uint8_t i = 0U; i < length; i++) {
// Only let audio through when relaying audio
currentSample = samples[i];//save to a local variable to avoid indirection on every access
// Only let audio through when relaying audio
if (m_state != FS_RELAYING && m_state != FS_KERCHUNK) {
currentSample = 0U;
}