mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-10-14 15:54:11 +02:00
Make sure buffer is continuously filled
This commit is contained in:
@@ -153,7 +153,8 @@ void CFM::process()
|
|||||||
uint16_t space = io.getSpace();
|
uint16_t space = io.getSpace();
|
||||||
uint16_t length = m_outputRFRB.getData();
|
uint16_t length = m_outputRFRB.getData();
|
||||||
|
|
||||||
if (space > FM_TX_BLOCK_SIZE && length >= FM_TX_BLOCK_SIZE ) {
|
if (space > 10U && length >= FM_TX_BLOCK_SIZE ) {
|
||||||
|
space -= 2U;
|
||||||
if (length > FM_TX_BLOCK_SIZE)
|
if (length > FM_TX_BLOCK_SIZE)
|
||||||
length = FM_TX_BLOCK_SIZE;
|
length = FM_TX_BLOCK_SIZE;
|
||||||
if (space > FM_TX_BLOCK_SIZE)
|
if (space > FM_TX_BLOCK_SIZE)
|
||||||
|
|||||||
Reference in New Issue
Block a user