]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/appmain.c
Extended iClass support with Card and Reader emulation!
[proxmark3-svn] / armsrc / appmain.c
index d7f05d16fa7ae01b055fa4dd29d5f730833a776b..362759a700c8e39efe0a55fc0d769f243bac397d 100644 (file)
@@ -186,7 +186,7 @@ int AvgAdc(int ch) // was static - merlok
 void MeasureAntennaTuning(void)
 {
        uint8_t *dest = (uint8_t *)BigBuf;
-       int i, ptr = 0, adcval = 0, peak = 0, peakv = 0, peakf = 0;;
+       int i, adcval = 0, peak = 0, peakv = 0, peakf = 0; //ptr = 0 
        int vLf125 = 0, vLf134 = 0, vHf = 0;    // in mV
 
        UsbCommand c;
@@ -217,7 +217,7 @@ void MeasureAntennaTuning(void)
                        peakv = adcval;
                        peak = dest[i];
                        peakf = i;
-                       ptr = i;
+                       //ptr = i;
                }
        }
 
@@ -754,6 +754,12 @@ void UsbPacketReceived(uint8_t *packet, int len)
                case CMD_SNOOP_ICLASS:
                        SnoopIClass();
                        break;
+               case CMD_SIMULATE_TAG_ICLASS:
+                       SimulateIClass(c->arg[0], c->d.asBytes);
+                       break;
+               case CMD_READER_ICLASS:
+                       ReaderIClass(c->arg[0]);
+                       break;
 #endif
 
                case CMD_SIMULATE_TAG_HF_LISTEN:
Impressum, Datenschutz