mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
style
This commit is contained in:
parent
9f015ad964
commit
414275802d
11 changed files with 93 additions and 73 deletions
|
@ -1323,19 +1323,19 @@ static void PacketReceived(PacketCommandNG *packet) {
|
|||
uint32_t offset;
|
||||
uint16_t length;
|
||||
} PACKED;
|
||||
struct p *payload = (struct p *) packet->data.asBytes;
|
||||
struct p *payload = (struct p *) packet->data.asBytes;
|
||||
|
||||
if (payload->length > PM3_CMD_DATA_SIZE) {
|
||||
reply_ng(CMD_HF_ISO15693_EML_GETMEM, PM3_EMALLOC, NULL, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
uint8_t *buf = BigBuf_malloc(payload->length);
|
||||
uint8_t *buf = BigBuf_malloc(payload->length);
|
||||
emlGet(buf, payload->offset, payload->length);
|
||||
LED_B_ON();
|
||||
reply_ng(CMD_HF_ISO15693_EML_GETMEM, PM3_SUCCESS, buf, payload->length);
|
||||
LED_B_OFF();
|
||||
BigBuf_free_keep_EM();
|
||||
BigBuf_free_keep_EM();
|
||||
break;
|
||||
}
|
||||
case CMD_HF_ISO15693_SIMULATE: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue