mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-06 06:55:05 +00:00
Sanity check the ring buffers.
This commit is contained in:
parent
a381387c5c
commit
0c635f5132
6 changed files with 24 additions and 10 deletions
|
|
@ -101,7 +101,7 @@ void CCWIdTX::process()
|
|||
|
||||
uint16_t space = io.getSpace();
|
||||
|
||||
while (space > CYCLE_LENGTH && space <= TX_RINGBUFFER_SIZE) {
|
||||
while (space > CYCLE_LENGTH) {
|
||||
bool b = READ_BIT1(m_poBuffer, m_poPtr);
|
||||
if (b)
|
||||
io.write(TONE, CYCLE_LENGTH);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue