]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/emvcmd.c
syntax sugar
[proxmark3-svn] / armsrc / emvcmd.c
index 217ded540d15b4d601c0c5d605900fb425245e2f..7055e2590c05c528ab3ebe0c6c211f110b16a13e 100644 (file)
@@ -977,7 +977,7 @@ void SimulateEMVcard()
                cmdsRecvd++;
 
                if (p_response != NULL) {
-                       EmSendCmd14443aRaw(p_response->modulation, p_response->modulation_n, receivedCmd[0] == 0x52);
+                       EmSendCmd14443aRaw(p_response->modulation, p_response->modulation_n);
                        // do the tracing for the previous reader request and this tag answer:
 
        
@@ -1068,7 +1068,7 @@ void EMVFuzz_RATS(uint8_t ratslen, uint8_t* RATS)
        uint8_t *receivedCmdPar = BigBuf_malloc(MAX_PARITY_SIZE);
        
        // To control where we are in the protocol
-       int order;
+       int order = 0;
 
        // We need to listen to the high-frequency, peak-detected path.
        iso14443a_setup(FPGA_HF_ISO14443A_TAGSIM_LISTEN);
@@ -1096,11 +1096,11 @@ void EMVFuzz_RATS(uint8_t ratslen, uint8_t* RATS)
            } 
            if (receivedCmd[0] == 0xE0) {       // Received a RATS request
                p_response = &responses[3]; order = 70;
-            EmSendCmd14443aRaw(p_response->modulation, p_response->modulation_n, (receivedCmd[0] == 0x52) || (receivedCmd[0] == 0x26));
+            EmSendCmd14443aRaw(p_response->modulation, p_response->modulation_n);
             break;
            }
         if (p_response != NULL){
-            EmSendCmd14443aRaw(p_response->modulation, p_response->modulation_n, (receivedCmd[0] == 0x52) || (receivedCmd[0] == 0x26));
+            EmSendCmd14443aRaw(p_response->modulation, p_response->modulation_n);
         } else {
             break;
         } 
Impressum, Datenschutz