1
0
mirror of synced 2024-11-27 17:11:01 +01:00

删除掉对0xa4的处理

This commit is contained in:
nerichan 2024-11-05 15:19:22 +08:00
parent 25decaa656
commit 9caa5b6d1c

View File

@ -359,7 +359,6 @@ void nfc_mifare_read() { // 认证成功后,读取 MIFARE 指定的 block
// response也可以直接打包转发回游戏 // response也可以直接打包转发回游戏
void nfc_felica_through() { // FeliCa 处理函数 void nfc_felica_through() { // FeliCa 处理函数
uint8_t response_length = 0; uint8_t response_length = 0;
req.encap_code &= 0x0F; //把0xA4处理为0x04FELICA_CMD_REQUEST_RESPONSE
if (nfc.inDataExchange(&req.encap_len, req.encap_len, &res.encap_len, &response_length)) { if (nfc.inDataExchange(&req.encap_len, req.encap_len, &res.encap_len, &response_length)) {
res_init(response_length); res_init(response_length);
//如果成功的话 res.encap_len == response_length //如果成功的话 res.encap_len == response_length