mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-05 14:37:02 +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
|
|
@ -113,7 +113,7 @@ void CDMRTX::process()
|
|||
if (m_poLen > 0U) {
|
||||
uint16_t space = io.getSpace();
|
||||
|
||||
while (space > (4U * DMR_RADIO_SYMBOL_LENGTH) && space <= TX_RINGBUFFER_SIZE) {
|
||||
while (space > (4U * DMR_RADIO_SYMBOL_LENGTH)) {
|
||||
uint8_t c = m_poBuffer[m_poPtr];
|
||||
uint8_t m = m_markBuffer[m_poPtr];
|
||||
m_poPtr++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue