mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-01-09 01:50:09 +01:00
Recalculate the free space in the ring buffer.
This commit is contained in:
parent
4e5bea9111
commit
04dddc68a1
|
|
@ -112,10 +112,10 @@ public:
|
|||
if (m_oPtr == m_iPtr)
|
||||
return m_length;
|
||||
|
||||
if (m_iPtr > m_oPtr)
|
||||
return m_iPtr - m_oPtr;
|
||||
if (m_oPtr > m_iPtr)
|
||||
return m_oPtr - m_iPtr;
|
||||
|
||||
return (m_length + m_iPtr) - m_oPtr;
|
||||
return (m_length + m_oPtr) - m_iPtr;
|
||||
}
|
||||
|
||||
unsigned int dataSize() const
|
||||
|
|
|
|||
Loading…
Reference in a new issue