X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/2d4eae76177550984019fc7e9dbb6ee54b6e703e..254b70a4afb07e6ec0f8b1b300df488337bbebc3:/armsrc/appmain.c diff --git a/armsrc/appmain.c b/armsrc/appmain.c index d7f05d16..b107f594 100644 --- a/armsrc/appmain.c +++ b/armsrc/appmain.c @@ -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; } } @@ -706,7 +706,7 @@ void UsbPacketReceived(uint8_t *packet, int len) ReaderIso14443a(c, &ack); break; case CMD_SIMULATE_TAG_ISO_14443a: - SimulateIso14443aTag(c->arg[0], c->arg[1]); // ## Simulate iso14443a tag - pass tag type & UID + SimulateIso14443aTag(c->arg[0], c->arg[1], c->arg[2]); // ## Simulate iso14443a tag - pass tag type & UID break; case CMD_READER_MIFARE: @@ -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: