1
0
mirror of synced 2024-11-30 18:34:38 +01:00

Update cmd.h

This commit is contained in:
Sucareto 2021-10-10 17:45:51 +08:00 committed by GitHub
parent 40422e8db9
commit f37b8049ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

6
cmd.h
View File

@ -228,11 +228,11 @@ static void sg_nfc_cmd_poll() { //卡号发送
res.type = 0x10;
res.id_len = uL;
memcpy(res.IDm, uid, uL);
sg_res_init(7);
sg_res_init(0x07);
return;
}
if (cardtype == 0x20) {
sg_res_init(19);
sg_res_init(0x13);
memcpy(res.IDm, felica.IDm, 8);
memcpy(res.PMm, felica.PMm, 8);
res.count = 1;
@ -242,7 +242,7 @@ static void sg_nfc_cmd_poll() { //卡号发送
}
#ifdef M2F
if (cardtype == 0x30) {
sg_res_init(19);
sg_res_init(0x13);
nfc.mifareclassic_ReadDataBlock(M2F_B, felica.block);
memcpy(res.IDm, felica.IDm, 8);
memcpy(res.PMm, felica.PMm, 8);