Return configuration errors.

This commit is contained in:
Jonathan Naylor 2020-04-16 14:00:31 +01:00
parent 4b0c3d88f3
commit bbe56f5082
7 changed files with 28 additions and 28 deletions

View file

@ -84,7 +84,7 @@ m_poLen(0U)
{
}
void CFMKeyer::setParams(const char* text, uint8_t speed, uint16_t frequency, uint8_t level)
uint8_t CFMKeyer::setParams(const char* text, uint8_t speed, uint16_t frequency, uint8_t level)
{
m_level = q15_t(level * 128);
@ -98,7 +98,7 @@ void CFMKeyer::setParams(const char* text, uint8_t speed, uint16_t frequency, ui
if (m_poLen >= 995U) {
m_poLen = 0U;
return;
return 4U;
}
}
@ -106,6 +106,8 @@ void CFMKeyer::setParams(const char* text, uint8_t speed, uint16_t frequency, ui
}
}
}
return 0U;
}
void CFMKeyer::getAudio(q15_t* samples, uint8_t length)