mirror of https://github.com/g4klx/MMDVM.git
Clean out the CTCSS decoder coefficient before initialising.
This commit is contained in:
parent
4fe1c11250
commit
8c38fdb36d
|
@ -92,6 +92,8 @@ m_result(CTS_NONE)
|
||||||
|
|
||||||
uint8_t CFMCTCSSRX::setParams(uint8_t frequency, uint8_t threshold)
|
uint8_t CFMCTCSSRX::setParams(uint8_t frequency, uint8_t threshold)
|
||||||
{
|
{
|
||||||
|
m_coeffDivTwo = 0;
|
||||||
|
|
||||||
for (uint8_t i = 0U; i < CTCSS_TABLE_DATA_LEN; i++) {
|
for (uint8_t i = 0U; i < CTCSS_TABLE_DATA_LEN; i++) {
|
||||||
if (RX_CTCSS_TABLE_DATA[i].frequency == frequency) {
|
if (RX_CTCSS_TABLE_DATA[i].frequency == frequency) {
|
||||||
m_coeffDivTwo = RX_CTCSS_TABLE_DATA[i].coeffDivTwo;
|
m_coeffDivTwo = RX_CTCSS_TABLE_DATA[i].coeffDivTwo;
|
||||||
|
|
Loading…
Reference in New Issue