Detect DAC overflows.

This commit is contained in:
Jonathan Naylor
2016-06-09 19:51:23 +01:00
parent ee93e4ce43
commit 89fa0a0c8d
3 changed files with 13 additions and 19 deletions

View File

@@ -160,7 +160,7 @@ void CYSFNetwork::clock(unsigned int ms)
return;
}
bool end = buffer[34U] == 0x01U;
bool end = (buffer[34U] & 0x01U) == 0x01U;
if (end)
::memset(m_tag, ' ', YSF_CALLSIGN_LENGTH);