Calculate the P25 transmit space a little more accurately.

This commit is contained in:
Jonathan Naylor 2016-10-05 07:54:18 +01:00
parent 970725819b
commit 02c90e3f7f
1 changed files with 1 additions and 1 deletions

View File

@ -192,6 +192,6 @@ void CP25TX::setTXDelay(uint8_t delay)
uint16_t CP25TX::getSpace() const uint16_t CP25TX::getSpace() const
{ {
return m_buffer.getSpace() / P25_LDU_FRAME_LENGTH_BYTES; return m_buffer.getSpace() / (P25_LDU_FRAME_LENGTH_BYTES + 1U);
} }