]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
fix - some card cant reset so quick. (#713)
authorOleg Moiseenko <807634+merlokk@users.noreply.github.com>
Sat, 17 Nov 2018 17:04:56 +0000 (19:04 +0200)
committerpwpiwi <pwpiwi@users.noreply.github.com>
Sat, 17 Nov 2018 17:04:56 +0000 (19:04 +0200)
client/emv/emvcore.c

index f9dd0cbe62546c550893f60dd478914f458a499f..98ecc5b04ba8d43c4ca4c4965d0782682eb2b8fb 100644 (file)
@@ -10,6 +10,7 @@
 
 #include "emvcore.h"
 #include "emvjson.h"
+#include "util_posix.h"
 
 // Got from here. Thanks)
 // https://eftlab.co.uk/index.php/site-map/knowledge-base/211-emv-aid-rid-pix
@@ -236,8 +237,10 @@ int EMVExchangeEx(bool ActivateField, bool LeaveFieldON, sAPDU apdu, bool Includ
        if (sw) *sw = 0;
        uint16_t isw = 0;
        
-       if (ActivateField)
+       if (ActivateField){
                DropField();
+               msleep(50);
+       }
        
        // COMPUTE APDU
        memcpy(data, &apdu, 5);
Impressum, Datenschutz