Add extra debugging for D-Star.

This commit is contained in:
Jonathan Naylor
2016-02-03 07:20:48 +00:00
parent c5e28c3941
commit 843f83611d
4 changed files with 23 additions and 8 deletions

View File

@@ -19,6 +19,7 @@
#include "DStarSlowData.h"
#include "DStarDefines.h"
#include "CRC.h"
#include "Log.h"
#include <cstdio>
#include <cassert>
@@ -90,6 +91,8 @@ CDStarHeader* CDStarSlowData::add(const unsigned char* data)
// Compare them
if (::memcmp(crc, m_header + 39U, 2U) != 0) {
if (m_ptr == 45U)
LogMessage("D-Star, invalid slow data header");
::memcpy(m_header + 39U, crc, 2U);
return NULL;
}