mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 22:45:31 +00:00
Add extra debughing of the output queues.
This commit is contained in:
parent
7e31a226de
commit
bfb74d3155
5 changed files with 91 additions and 28 deletions
|
|
@ -271,6 +271,13 @@ void CYSFControl::writeQueue(const unsigned char *data)
|
|||
return;
|
||||
|
||||
unsigned char len = YSF_FRAME_LENGTH_BYTES + 2U;
|
||||
|
||||
unsigned int space = m_queue.freeSpace();
|
||||
if (space < (len + 1U)) {
|
||||
LogError("YSF, overflow in the System Fusion RF queue");
|
||||
return;
|
||||
}
|
||||
|
||||
m_queue.addData(&len, 1U);
|
||||
|
||||
m_queue.addData(data, len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue