Make sure buffer is continuously filled

This commit is contained in:
Geoffrey Merck 2020-05-23 08:25:51 +02:00
parent 5039dfbe68
commit f14222e77d
1 changed files with 2 additions and 1 deletions

3
FM.cpp
View File

@ -153,7 +153,8 @@ void CFM::process()
uint16_t space = io.getSpace();
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)
length = FM_TX_BLOCK_SIZE;
if (space > FM_TX_BLOCK_SIZE)