mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-20 22:05:08 +00:00
Minor clean up
This commit is contained in:
parent
1c599138ad
commit
ae6cbcd9e7
1 changed files with 2 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue