//print 64 bit EM410x ID in multiple formats
void printEM410x(uint32_t hi, uint64_t id)
{
- //if (!id && !hi) return;
+ if (!id && !hi) return;
PrintAndLog("EM410x %s pattern found", (hi) ? "XL" : "" );
if (g_debugMode){
if (ans == -1)
PrintAndLog("DEBUG: Error - Em410x not only 0|1 in decoded bitstream");
+ else if (ans == -2)
+ PrintAndLog("DEBUG: Error - Em410x preamble not found");
else if (ans == -3)
PrintAndLog("DEBUG: Error - Em410x Size not correct: %d", size);
else if (ans == -4)
- PrintAndLog("DEBUG: Error - Em410x preamble not found");
- else if (ans == -5)
PrintAndLog("DEBUG: Error - Em410x parity failed");
}
return 0;
return 0;
}
size_t size = DemodBufferLen;
- //call lfdemod.c demod for Viking
+
int ans = VikingDemod_AM(DemodBuffer, &size);
if (ans < 0) {
if (g_debugMode) PrintAndLog("DEBUG: Error - Viking Demod %d %s", ans, (ans == -5)?"[chksum error]":"");
RepaintGraphWindow();
return 0;
}
+void setGrid_Clock(uint8_t clock){
+ PlotGridXdefault = clock;
+ RepaintGraphWindow();
+}
+
int CmdHexsamples(const char *Cmd)
{