This commit is contained in:
osboxes.org 2019-04-10 09:36:23 +02:00
commit ad52243981
4 changed files with 16 additions and 16 deletions

View file

@ -1979,7 +1979,7 @@ int FSKToNRZ(int *data, int *dataLen, int clk, int LowToneFC, int HighToneFC) {
// currently only know fsk modulations with field clocks < 10 samples and > 4 samples. filter out to remove false positives (and possibly destroying ask/psk modulated waves...) // currently only know fsk modulations with field clocks < 10 samples and > 4 samples. filter out to remove false positives (and possibly destroying ask/psk modulated waves...)
if (ans == 0 || clk == 0 || LowToneFC == 0 || HighToneFC == 0 || LowToneFC > 10 || HighToneFC < 4) { if (ans == 0 || clk == 0 || LowToneFC == 0 || HighToneFC == 0 || LowToneFC > 10 || HighToneFC < 4) {
if (g_debugMode > 1) { if (g_debugMode > 1) {
PrintAndLogEx(NORMAL,"DEBUG FSKtoNRZ: no fsk clocks found"); PrintAndLogEx(NORMAL, "DEBUG FSKtoNRZ: no fsk clocks found");
} }
return 0; return 0;
} }

View file

@ -1734,7 +1734,7 @@ out:
if (transferToEml) { if (transferToEml) {
uint8_t block[16] = {0x00}; uint8_t block[16] = {0x00};
for ( i = 0; i < sectorsCnt; ++i) { for (i = 0; i < sectorsCnt; ++i) {
mfEmlGetMem(block, FirstBlockOfSector(i) + NumBlocksPerSector(i) - 1, 1); mfEmlGetMem(block, FirstBlockOfSector(i) + NumBlocksPerSector(i) - 1, 1);
if (e_sector[i].foundKey[0]) if (e_sector[i].foundKey[0])
num_to_bytes(e_sector[i].Key[0], 6, block); num_to_bytes(e_sector[i].Key[0], 6, block);

View file

@ -206,7 +206,7 @@ int zlib_decompress(FILE *infile, FILE *outfile) {
compressed_fpga_stream.opaque = Z_NULL; compressed_fpga_stream.opaque = Z_NULL;
ret = inflateInit2(&compressed_fpga_stream, 0); ret = inflateInit2(&compressed_fpga_stream, 0);
if ( ret < 0 ) if (ret < 0)
return (EXIT_FAILURE); return (EXIT_FAILURE);
do { do {

View file

@ -1417,7 +1417,7 @@ int manrawdecode(uint8_t *bits, size_t *size, uint8_t invert, uint8_t *alignPos)
if (bits[i] == bits[i + 1]) if (bits[i] == bits[i + 1])
errCnt++; errCnt++;
if ( errCnt > 50) if (errCnt > 50)
break; break;
} }
@ -1517,7 +1517,7 @@ int cleanAskRawDemod(uint8_t *bits, size_t *size, int clk, int invert, int high,
} }
*size = bitCnt; *size = bitCnt;
if ( *startIdx < 0 ) if (*startIdx < 0)
*startIdx = 0; *startIdx = 0;
if (g_debugMode == 2) prnt("DEBUG ASK: cleanAskRawDemod Startidx %u ", *startIdx); if (g_debugMode == 2) prnt("DEBUG ASK: cleanAskRawDemod Startidx %u ", *startIdx);