Update 48k

This commit is contained in:
Luca Marchesano
2018-08-22 10:53:38 +02:00
committed by GitHub
parent 72b300efcf
commit 6ef27c27b1
13 changed files with 61 additions and 39 deletions
+3 -2
View File
@@ -50,7 +50,7 @@ const uint8_t YSF_END_SYNC = 0xFFU;
const uint8_t YSF_HANG = 0x00U;
CYSFTX::CYSFTX() :
m_buffer(4000U),
m_buffer(TX_BUFFER_LEN),
m_modFilter(),
m_modState(),
m_poBuffer(),
@@ -69,6 +69,7 @@ m_txCount(0U)
m_modFilter.pState = m_modState;
}
void CYSFTX::process()
{
if (m_buffer.getData() == 0U && m_poLen == 0U && m_txCount == 0U)
@@ -92,7 +93,7 @@ void CYSFTX::process()
if (m_poLen > 0U) {
// Transmit YSF data.
uint16_t space = io.getSpace();
while (space > (4U * YSF_RADIO_SYMBOL_LENGTH)) {
uint8_t c = m_poBuffer[m_poPtr++];
writeByte(c);