X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/3acac886bc2e0b89723673968af21984aa15a073..7e735c1398b9c3643d292614db10c7e58c58db85:/client/cmdlfpresco.c?ds=inline diff --git a/client/cmdlfpresco.c b/client/cmdlfpresco.c index 36f99107..accd6f22 100644 --- a/client/cmdlfpresco.c +++ b/client/cmdlfpresco.c @@ -116,13 +116,12 @@ int GetPrescoBits(uint32_t fullcode, uint8_t *prescoBits) { //see ASKDemod for what args are accepted int CmdPrescoDemod(const char *Cmd) { bool st = true; - - if (!ASKDemod_ext("32 0 0", FALSE, FALSE, 1, &st)) { + if (!ASKDemod_ext("32 0 0 0 0 a", FALSE, FALSE, 1, &st)) { if (g_debugMode) PrintAndLog("DEBUG: Error Presco ASKDemod failed"); return 0; } size_t size = DemodBufferLen; - //call lfdemod.c demod for Viking + //call lfdemod.c demod for Presco int ans = PrescoDemod(DemodBuffer, &size); if (ans < 0) { if (g_debugMode){ @@ -163,7 +162,7 @@ int CmdPrescoRead(const char *Cmd) { // read lf silently CmdLFRead("s"); // get samples silently - getSamples("20000", TRUE); + getSamples("12000", TRUE); // demod and output Presco ID return CmdPrescoDemod(Cmd); } @@ -174,7 +173,7 @@ int CmdPrescoClone(const char *Cmd) { bool Q5 = false; uint32_t sitecode=0, usercode=0, fullcode=0; - uint32_t blocks[5] = {T55x7_MODULATION_MANCHESTER | T55x7_BITRATE_RF_32 | 4<