mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-07 07:25:22 +00:00
Workaround for TX buffer overflows.
This commit is contained in:
parent
8f9744c0ec
commit
4fb563f534
5 changed files with 5 additions and 5 deletions
|
|
@ -260,7 +260,7 @@ void CDStarTX::process()
|
|||
if (m_poLen > 0U) {
|
||||
uint16_t space = io.getSpace();
|
||||
|
||||
while (space > (8U * DSTAR_RADIO_BIT_LENGTH)) {
|
||||
while (space > (8U * DSTAR_RADIO_BIT_LENGTH) && space < 1000U) {
|
||||
uint8_t c = m_poBuffer[m_poPtr++];
|
||||
writeByte(c);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue