Test the use of a reverse burst at the end of a transmission.

This commit is contained in:
Jonathan Naylor 2020-07-14 12:20:42 +01:00
parent 20013e3adc
commit dc41fd83d2
5 changed files with 22 additions and 9 deletions

View file

@ -115,11 +115,14 @@ uint8_t CFMCTCSSTX::setParams(uint8_t frequency, uint8_t level)
return 0U;
}
q15_t CFMCTCSSTX::getAudio()
q15_t CFMCTCSSTX::getAudio(bool reverse)
{
q15_t sample = m_values[m_n++];
if(m_n >= m_length)
if (m_n >= m_length)
m_n = 0U;
return sample;
if (reverse)
return -sample;
else
return sample;
}