Don't square the threshold value.

This commit is contained in:
Jonathan Naylor 2020-04-20 13:28:07 +01:00
parent 5ed8eeda6f
commit ae58f8eb64
2 changed files with 2 additions and 2 deletions

View file

@ -102,7 +102,7 @@ uint8_t CFMCTCSSRX::setParams(uint8_t frequency, uint8_t threshold)
if (m_coeff == 0.0F)
return 4U;
m_threshold = float32_t(threshold * threshold);
m_threshold = float32_t(threshold);
return 0U;
}