mirror of https://github.com/g4klx/MMDVM.git
Make sure buffer is continuously filled
This commit is contained in:
parent
5039dfbe68
commit
f14222e77d
3
FM.cpp
3
FM.cpp
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue