mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-23 16:55:52 +08:00
Detect DAC overflows.
This commit is contained in:
@@ -362,6 +362,8 @@ void CYSFControl::writeNetwork()
|
||||
|
||||
m_networkWatchdog.start();
|
||||
|
||||
bool gateway = ::memcmp(data + 4U, "GATEWAY ", YSF_CALLSIGN_LENGTH) == 0;
|
||||
|
||||
if (!m_netTimeoutTimer.isRunning()) {
|
||||
if (::memcmp(data + 14U, " ", YSF_CALLSIGN_LENGTH) != 0)
|
||||
::memcpy(m_netSource, data + 14U, YSF_CALLSIGN_LENGTH);
|
||||
@@ -403,7 +405,7 @@ void CYSFControl::writeNetwork()
|
||||
|
||||
m_netFrames++;
|
||||
|
||||
bool end = data[34U] == 0x01U;
|
||||
bool end = (data[34U] & 0x01U) == 0x01U;
|
||||
|
||||
data[33U] = end ? TAG_EOT : TAG_DATA;
|
||||
data[34U] = 0x00U;
|
||||
|
||||
Reference in New Issue
Block a user