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:
iceman1001
2015-01-04 23:43:07 +01:00
parent 8d0a3e87d7
commit f0cf62cd73
3 changed files with 375 additions and 378 deletions
+5 -5
View File
@@ -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
View File
File diff suppressed because it is too large Load Diff
-2
View File
@@ -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;
}