mirror of https://github.com/g4klx/MMDVM.git
Minor clean up
This commit is contained in:
parent
1c599138ad
commit
ae6cbcd9e7
3
FM.cpp
3
FM.cpp
|
@ -69,8 +69,9 @@ void CFM::samples(bool cos, q15_t* samples, uint8_t length)
|
||||||
|
|
||||||
q15_t currentSample;
|
q15_t currentSample;
|
||||||
for(uint8_t i = 0U; i < length; i++) {
|
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
|
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) {
|
if (m_state != FS_RELAYING && m_state != FS_KERCHUNK) {
|
||||||
currentSample = 0U;
|
currentSample = 0U;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue