Finally fix the (re)generation of Full LC PDUs.

This commit is contained in:
Jonathan Naylor
2016-02-22 22:27:03 +00:00
parent e2c7a28fb9
commit fe362d6e2d
3 changed files with 25 additions and 6 deletions

View File

@@ -21,6 +21,7 @@
#include "DMRDefines.h"
#include "RS129.h"
#include "Utils.h"
#include "Log.h"
#include <cstdio>
@@ -60,12 +61,8 @@ CDMRLC* CDMRFullLC::decode(const unsigned char* data, unsigned char type)
return NULL;
}
if (!CRS129::check(lcData)) {
::LogDebug("Checksum failed for the LC");
CDMRLC lc(lcData);
LogDebug("Invalid LC, src = %u, dst = %s%u", lc.getSrcId(), lc.getFLCO() == FLCO_GROUP ? "TG " : "", lc.getDstId());
if (!CRS129::check(lcData))
return NULL;
}
return new CDMRLC(lcData);
}