* low for long periods, others just reach the peak and go
* down)
*/
+ //[marhsmellow] change == to >= for high and <= for low for fuzz
if ((GraphBuffer[i] == high) && (GraphBuffer[i - 1] == c)) {
GraphBuffer[i] = 1 - c;
} else if ((GraphBuffer[i] == low) && (GraphBuffer[i - 1] == (1 - c))){
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;