fix for client crash in lf hitag eload. Hitag simulation still now working (wip)

This commit is contained in:
iceman1001 2021-06-20 23:02:18 +02:00
commit 0e7e13db7d
3 changed files with 31 additions and 20 deletions

View file

@ -1114,15 +1114,9 @@ static void PacketReceived(PacketCommandNG *packet) {
break;
}
case CMD_LF_HITAG_ELOAD: {
/*
struct p {
uint16_t len;
uint8_t *data;
} PACKED;
struct p *payload = (struct p *) packet->data.asBytes;
lf_hitag_t *payload = (lf_hitag_t *) packet->data.asBytes;
uint8_t *mem = BigBuf_get_EM_addr();
memcpy((uint8_t *)mem.sectors, payload->data, payload->len);
*/
memcpy((uint8_t *)mem, payload->data, payload->len);
break;
}
#endif