Rescale some of the tone levels.

This commit is contained in:
Jonathan Naylor 2020-04-24 13:13:25 +01:00
parent 242bc7b322
commit 9fab1e0823
3 changed files with 6 additions and 8 deletions

View file

@ -111,8 +111,8 @@ uint8_t CFMKeyer::setParams(const char* text, uint8_t speed, uint16_t frequency,
}
}
m_highLevel = q15_t(highLevel * 128);
m_lowLevel = q15_t(lowLevel * 128);
m_highLevel = q15_t(highLevel);
m_lowLevel = q15_t(lowLevel);
m_dotLen = 24000U / speed; // In samples