Update TX delay according to G4KLX MMDVM firmware

This commit is contained in:
Andy CA6JAU 2018-07-03 14:17:42 -04:00
parent 773c69afb0
commit dc9b8c28f6
2 changed files with 4 additions and 4 deletions

View file

@ -20,7 +20,7 @@
#if !defined(POCSAGDEFINES_H)
#define POCSAGDEFINES_H
const uint16_t POCSAG_PREAMBLE_LENGTH_BYTES = 576U / 8U;
const uint16_t POCSAG_PREAMBLE_LENGTH_BYTES = 18U * sizeof(uint32_t);
const uint16_t POCSAG_FRAME_LENGTH_BYTES = 17U * sizeof(uint32_t);
const uint8_t POCSAG_SYNC = 0xAAU;

View file

@ -105,10 +105,10 @@ void CPOCSAGTX::writeByte(uint8_t c)
void CPOCSAGTX::setTXDelay(uint8_t delay)
{
m_txDelay = POCSAG_PREAMBLE_LENGTH_BYTES + uint16_t(delay);
m_txDelay = POCSAG_PREAMBLE_LENGTH_BYTES + (delay * 3U) / 2U;
if (m_txDelay > 1200U)
m_txDelay = 1200U;
if (m_txDelay > 150U)
m_txDelay = 150U;
}
uint8_t CPOCSAGTX::getSpace() const