mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-07 00:28:07 +08:00
oops. in the spirit of cleaner code, don't do stuff twice!
This commit is contained in:
parent
bdd1de1b02
commit
502def6d63
1 changed files with 1 additions and 2 deletions
|
@ -569,12 +569,12 @@ void UsbPacketReceived(BYTE *packet, int len)
|
||||||
{
|
{
|
||||||
UsbCommand *c = (UsbCommand *)packet;
|
UsbCommand *c = (UsbCommand *)packet;
|
||||||
UsbCommand ack;
|
UsbCommand ack;
|
||||||
|
ack.cmd = CMD_ACK;
|
||||||
|
|
||||||
switch(c->cmd) {
|
switch(c->cmd) {
|
||||||
#ifdef WITH_LF
|
#ifdef WITH_LF
|
||||||
case CMD_ACQUIRE_RAW_ADC_SAMPLES_125K:
|
case CMD_ACQUIRE_RAW_ADC_SAMPLES_125K:
|
||||||
AcquireRawAdcSamples125k(c->arg[0]);
|
AcquireRawAdcSamples125k(c->arg[0]);
|
||||||
ack.cmd = CMD_ACK;
|
|
||||||
UsbSendPacket((BYTE*)&ack, sizeof(ack));
|
UsbSendPacket((BYTE*)&ack, sizeof(ack));
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
@ -725,7 +725,6 @@ void UsbPacketReceived(BYTE *packet, int len)
|
||||||
BYTE *b = (BYTE *)BigBuf;
|
BYTE *b = (BYTE *)BigBuf;
|
||||||
memcpy(b+c->arg[0], c->d.asBytes, 48);
|
memcpy(b+c->arg[0], c->d.asBytes, 48);
|
||||||
//Dbprintf("copied 48 bytes to %i",b+c->arg[0]);
|
//Dbprintf("copied 48 bytes to %i",b+c->arg[0]);
|
||||||
ack.cmd = CMD_ACK;
|
|
||||||
UsbSendPacket((BYTE*)&ack, sizeof(ack));
|
UsbSendPacket((BYTE*)&ack, sizeof(ack));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue