]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/appmain.c
client/cmdparser.c: Cosmetic changes.
[proxmark3-svn] / armsrc / appmain.c
index f69bdccc16dee5aa9277f1580a48847bb32cef19..e5cd16b74389e22322c1070fb8415bcee788e055 100644 (file)
@@ -569,12 +569,12 @@ void UsbPacketReceived(BYTE *packet, int len)
 {\r
        UsbCommand *c = (UsbCommand *)packet;\r
        UsbCommand ack;\r
+       ack.cmd = CMD_ACK;\r
 \r
        switch(c->cmd) {\r
 #ifdef WITH_LF\r
                case CMD_ACQUIRE_RAW_ADC_SAMPLES_125K:\r
                        AcquireRawAdcSamples125k(c->arg[0]);\r
-                       ack.cmd = CMD_ACK;\r
                        UsbSendPacket((BYTE*)&ack, sizeof(ack));\r
                        break;\r
 #endif\r
@@ -725,7 +725,6 @@ void UsbPacketReceived(BYTE *packet, int len)
                        BYTE *b = (BYTE *)BigBuf;\r
                        memcpy(b+c->arg[0], c->d.asBytes, 48);\r
                        //Dbprintf("copied 48 bytes to %i",b+c->arg[0]);\r
-                       ack.cmd = CMD_ACK;\r
                        UsbSendPacket((BYTE*)&ack, sizeof(ack));\r
                        break;\r
                }\r
Impressum, Datenschutz