mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-19 12:59:44 -07:00
minor g-prox-ii demod fix
lf search was occasionally outputting false results.
This commit is contained in:
parent
73d04bb417
commit
d9d41e0f3f
1 changed files with 3 additions and 3 deletions
|
@ -623,13 +623,13 @@ int CmdG_Prox_II_Demod(const char *Cmd)
|
||||||
int ans = ASKrawDemod(Cmd, FALSE);
|
int ans = ASKrawDemod(Cmd, FALSE);
|
||||||
if (ans <= 0) {
|
if (ans <= 0) {
|
||||||
if (g_debugMode) PrintAndLog("Error AskrawDemod: %d",ans);
|
if (g_debugMode) PrintAndLog("Error AskrawDemod: %d",ans);
|
||||||
return ans;
|
return 0; //ans;
|
||||||
}
|
}
|
||||||
size_t size = DemodBufferLen;
|
size_t size = DemodBufferLen;
|
||||||
ans = BiphaseRawDecode(DemodBuffer, &size, 0, 0);
|
ans = BiphaseRawDecode(DemodBuffer, &size, 0, 0);
|
||||||
if (ans !=0) {
|
if (ans !=0) {
|
||||||
if (g_debugMode) PrintAndLog("Error BiphaseRawDecode: %d",ans);
|
if (g_debugMode) PrintAndLog("Error BiphaseRawDecode: %d",ans);
|
||||||
return ans;
|
return 0; //ans;
|
||||||
}
|
}
|
||||||
//call lfdemod.c demod for gProxII
|
//call lfdemod.c demod for gProxII
|
||||||
ans = gProxII_Demod(DemodBuffer, &size);
|
ans = gProxII_Demod(DemodBuffer, &size);
|
||||||
|
@ -639,7 +639,7 @@ int CmdG_Prox_II_Demod(const char *Cmd)
|
||||||
ans = BiphaseRawDecode(DemodBuffer, &size, 1, 0);
|
ans = BiphaseRawDecode(DemodBuffer, &size, 1, 0);
|
||||||
if (ans != 0) {
|
if (ans != 0) {
|
||||||
if (g_debugMode) PrintAndLog("Error BiphaseRawDecode: %d",ans);
|
if (g_debugMode) PrintAndLog("Error BiphaseRawDecode: %d",ans);
|
||||||
return ans;
|
return 0;//ans;
|
||||||
}
|
}
|
||||||
ans = gProxII_Demod(DemodBuffer, &size);
|
ans = gProxII_Demod(DemodBuffer, &size);
|
||||||
if (ans < 0) {
|
if (ans < 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue