Add q31_t cast

This commit is contained in:
Geoffrey Merck 2020-04-26 12:38:23 +02:00
parent 6824d5662a
commit 028d0cf609
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ CTCSSState CFMCTCSSRX::process(q15_t sample)
q31_t t3 = t2 * 2;
// m_q0 = m_coeffDivTwo * m_q1 * 2 - q2 + sample
m_q0 = t3 - q2 + sample;
m_q0 = t3 - q2 + q31_t(sample);
m_count++;
if (m_count == N) {