mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-06 06:53:42 +00:00
Finally fix the (re)generation of Full LC PDUs.
This commit is contained in:
parent
e2c7a28fb9
commit
fe362d6e2d
3 changed files with 25 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue