FIX: this commit solves a sneaky bug in 'LF VIKING' commands. The getVikingBits dropped the highest byte in the uid while creating the datablocks for the clone.

ADD:  added some extra message in debugmode when looking at viking tags.
This commit is contained in:
iceman1001
2016-04-24 21:41:45 +02:00
parent 21d359f68f
commit c0afa86f75
3 changed files with 12 additions and 7 deletions

View File

@@ -660,7 +660,7 @@ int CmdVikingDemod(const char *Cmd)
//call lfdemod.c demod for Viking
int ans = VikingDemod_AM(DemodBuffer, &size);
if (ans < 0) {
if (g_debugMode) PrintAndLog("Error Viking_Demod %d", ans);
if (g_debugMode) PrintAndLog("Error Viking_Demod %d %s", ans, (ans == -5)?"[chksum error]":"");
return 0;
}
//got a good demod