mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
FIX: fixed a little bug I introduced from last commit in fskdemod
CHG: tab fixes in cmdlf.c and minor code clean up CHG: minor variable name change, printstatement in cmddata.c
This commit is contained in:
+5
-5
@@ -220,12 +220,12 @@ int Cmdaskmandemod(const char *Cmd)
|
||||
PrintAndLog("ASK/Manchester decoded bitstream:");
|
||||
|
||||
printBitStream(bits, len);
|
||||
uint64_t lo = Em410xDecode(bits, len);
|
||||
|
||||
if (lo > 0){
|
||||
SetGraphBuf(bits,len);
|
||||
PrintAndLog("EM410x pattern found: ");
|
||||
printEM410x(lo);
|
||||
uint64_t tagid = Em410xDecode(bits, len);
|
||||
|
||||
if (tagid > 0){
|
||||
SetGraphBuf(bits, len);
|
||||
printEM410x(tagid);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
||||
+370
-371
File diff suppressed because it is too large
Load Diff
@@ -538,8 +538,6 @@ int fskdemod(uint8_t *dest, size_t size, uint8_t rfLen, uint8_t invert, uint8_t
|
||||
size = fsk_wave_demod(dest, size, fchigh, fclow);
|
||||
if ( size > 0 )
|
||||
size = aggregate_bits(dest, size, rfLen, 192, invert, fchigh, fclow);
|
||||
else
|
||||
return -1;
|
||||
return size;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user