From 02c90e3f7f051318072e5a1bc6ca9a02c9d47058 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Wed, 5 Oct 2016 07:54:18 +0100 Subject: [PATCH] Calculate the P25 transmit space a little more accurately. --- P25TX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/P25TX.cpp b/P25TX.cpp index 8b4ffca..6ad8b3e 100644 --- a/P25TX.cpp +++ b/P25TX.cpp @@ -192,6 +192,6 @@ void CP25TX::setTXDelay(uint8_t delay) uint16_t CP25TX::getSpace() const { - return m_buffer.getSpace() / P25_LDU_FRAME_LENGTH_BYTES; + return m_buffer.getSpace() / (P25_LDU_FRAME_LENGTH_BYTES + 1U); }