From 8d97cbe2f413ac6affe3549cfe6b2ba24f98a683 Mon Sep 17 00:00:00 2001 From: Tim Sawyer Date: Wed, 4 Mar 2026 08:14:05 -0800 Subject: [PATCH] Reset V24 TX scheduler epoch at stream start --- src/host/modem/ModemV24.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/host/modem/ModemV24.cpp b/src/host/modem/ModemV24.cpp index 5618f2fe..3ade3ba6 100644 --- a/src/host/modem/ModemV24.cpp +++ b/src/host/modem/ModemV24.cpp @@ -2448,6 +2448,9 @@ bool ModemV24::queueP25Frame(uint8_t* data, uint16_t len, SERIAL_TX_TYPE msgType void ModemV24::startOfStreamV24(const p25::lc::LC& control) { m_txCallInProgress = true; + // Start each Net->RF stream with a fresh scheduler epoch so a new call + // doesn't inherit a future-biased timestamp from the previous call. + m_lastP25Tx = 0U; if (m_debug) { m_txStartupTraceActive = true; m_txStartupTraceT0 = std::chrono::duration_cast( @@ -2576,6 +2579,9 @@ void ModemV24::startOfStreamTIA(const p25::lc::LC& control) { m_txCallInProgress = true; m_superFrameCnt = 1U; + // Start each Net->RF stream with a fresh scheduler epoch so a new call + // doesn't inherit a future-biased timestamp from the previous call. + m_lastP25Tx = 0U; if (m_debug) { m_txStartupTraceActive = true; m_txStartupTraceT0 = std::chrono::duration_cast(