]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/appmain.c
added simple test suite for tools/findbits.py
[proxmark3-svn] / armsrc / appmain.c
index 140555409116d0b4dae8e888cea575333db336b2..4ff1e8113d1e578c421bae3641862c6838e96d20 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;
                }
        }
 
@@ -619,6 +619,9 @@ void UsbPacketReceived(uint8_t *packet, int len)
                case CMD_HID_CLONE_TAG:
                        CopyHIDtoT5567(c->arg[0], c->arg[1]);                                   // Clone HID tag by ID to T55x7
                        break;
+               case CMD_EM410X_WRITE_TAG:
+                       WriteEM410x(c->arg[0], c->arg[1], c->arg[2]);
+                       break;
                case CMD_READ_TI_TYPE:
                        ReadTItag();
                        break;
Impressum, Datenschutz