mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 15:09:23 +08:00
Remove irritating log messages.
This commit is contained in:
@@ -21,7 +21,6 @@
|
|||||||
#include "Hamming.h"
|
#include "Hamming.h"
|
||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
#include "CRC.h"
|
#include "CRC.h"
|
||||||
#include "Log.h"
|
|
||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
@@ -210,20 +209,16 @@ CDMRLC* CDMREmbeddedLC::processMultiBlockEmbeddedLC()
|
|||||||
|
|
||||||
// Hamming (16,11,4) check each row except the last one
|
// Hamming (16,11,4) check each row except the last one
|
||||||
for (unsigned int a = 0U; a < 112U; a += 16U) {
|
for (unsigned int a = 0U; a < 112U; a += 16U) {
|
||||||
if (!CHamming::decode16114(data + a)) {
|
if (!CHamming::decode16114(data + a))
|
||||||
::LogDebug("Hamming decode of a row of the Embedded LC failed");
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Check the parity bits
|
// Check the parity bits
|
||||||
for (unsigned int a = 0U; a < 16U; a++) {
|
for (unsigned int a = 0U; a < 16U; a++) {
|
||||||
bool parity = data[a + 0U] ^ data[a + 16U] ^ data[a + 32U] ^ data[a + 48U] ^ data[a + 64U] ^ data[a + 80U] ^ data[a + 96U] ^ data[a + 112U];
|
bool parity = data[a + 0U] ^ data[a + 16U] ^ data[a + 32U] ^ data[a + 48U] ^ data[a + 64U] ^ data[a + 80U] ^ data[a + 96U] ^ data[a + 112U];
|
||||||
if (parity) {
|
if (parity)
|
||||||
::LogDebug("Parity check of a column of the Embedded LC failed");
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// We have passed the Hamming check so extract the actual payload
|
// We have passed the Hamming check so extract the actual payload
|
||||||
bool lcData[72U];
|
bool lcData[72U];
|
||||||
@@ -252,10 +247,8 @@ CDMRLC* CDMREmbeddedLC::processMultiBlockEmbeddedLC()
|
|||||||
if (data[106]) crc += 1U;
|
if (data[106]) crc += 1U;
|
||||||
|
|
||||||
// Now CRC check this
|
// Now CRC check this
|
||||||
if (!CCRC::checkFiveBit(lcData, crc)) {
|
if (!CCRC::checkFiveBit(lcData, crc))
|
||||||
::LogDebug("Checksum of the Embedded LC failed");
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
|
||||||
|
|
||||||
return new CDMRLC(lcData);
|
return new CDMRLC(lcData);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user