mirror of
https://github.com/juribeparada/MMDVM_HS.git
synced 2025-12-06 07:12:08 +01:00
Update TX delay according to G4KLX MMDVM firmware
This commit is contained in:
parent
773c69afb0
commit
dc9b8c28f6
|
|
@ -20,7 +20,7 @@
|
||||||
#if !defined(POCSAGDEFINES_H)
|
#if !defined(POCSAGDEFINES_H)
|
||||||
#define 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 uint16_t POCSAG_FRAME_LENGTH_BYTES = 17U * sizeof(uint32_t);
|
||||||
const uint8_t POCSAG_SYNC = 0xAAU;
|
const uint8_t POCSAG_SYNC = 0xAAU;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -105,10 +105,10 @@ void CPOCSAGTX::writeByte(uint8_t c)
|
||||||
|
|
||||||
void CPOCSAGTX::setTXDelay(uint8_t delay)
|
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)
|
if (m_txDelay > 150U)
|
||||||
m_txDelay = 1200U;
|
m_txDelay = 150U;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t CPOCSAGTX::getSpace() const
|
uint8_t CPOCSAGTX::getSpace() const
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue