1
0
mirror of synced 2024-11-23 23:50:56 +01:00

使用 define 控制 felica 读卡函数;解决 fw update 失败问题

This commit is contained in:
Sucareto 2024-04-18 17:47:19 +08:00
parent 8877d1386d
commit abea29824c
2 changed files with 12 additions and 6 deletions

View File

@ -78,8 +78,8 @@ enum {
CMD_MIFARE_KEY_SET_B = 0x54, CMD_MIFARE_KEY_SET_B = 0x54,
CMD_MIFARE_AUTHORIZE_B = 0x55, CMD_MIFARE_AUTHORIZE_B = 0x55,
// Boot,update // Boot,update
// CMD_TO_UPDATER_MODE = 0x60, CMD_TO_UPDATER_MODE = 0x60,
// CMD_SEND_HEX_DATA = 0x61, CMD_SEND_HEX_DATA = 0x61,
CMD_TO_NORMAL_MODE = 0x62, CMD_TO_NORMAL_MODE = 0x62,
// CMD_SEND_BINDATA_INIT = 0x63, // CMD_SEND_BINDATA_INIT = 0x63,
// CMD_SEND_BINDATA_EXEC = 0x64, // CMD_SEND_BINDATA_EXEC = 0x64,

View File

@ -1,4 +1,7 @@
#define high_baudrate #define high_baudrate
#define SKIP_FeliCa_THROUGH
#include "Aime_Reader.h" #include "Aime_Reader.h"
void setup() { void setup() {
@ -70,10 +73,11 @@ void loop() {
nfc_mifare_read(); nfc_mifare_read();
break; break;
// FeliCa #ifndef SKIP_FeliCa_THROUGH
// case CMD_FELICA_THROUGH: case CMD_FELICA_THROUGH:
// nfc_felica_through(); nfc_felica_through();
// break; break;
#endif
// LED // LED
case CMD_EXT_BOARD_LED_RGB: case CMD_EXT_BOARD_LED_RGB:
@ -90,6 +94,8 @@ void loop() {
case CMD_CARD_SELECT: case CMD_CARD_SELECT:
case CMD_CARD_HALT: case CMD_CARD_HALT:
case CMD_EXT_TO_NORMAL_MODE: case CMD_EXT_TO_NORMAL_MODE:
case CMD_TO_UPDATER_MODE:
case CMD_SEND_HEX_DATA:
res_init(); res_init();
break; break;