Remove irritating log messages.

This commit is contained in:
Jonathan Naylor
2016-07-14 18:23:17 +01:00
parent ad29c5c4b6
commit 767c30ebf5

View File

@@ -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,19 +209,15 @@ 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
@@ -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);
} }