Skip to content

Commit

Permalink
Stashing incremental changes from Arch for compilation on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
maxieds committed Mar 15, 2022
1 parent 8f5053f commit 64d1fff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,8 @@ uint16_t ISO144433APiccProcess(uint8_t *Buffer, uint16_t BitCount) {
back a response, so that we should not reset. */
decrementRetryCount = false;
} else if (Cmd == ISO14443A_CMD_REQA || Cmd == ISO14443A_CMD_WUPA) {
ISO144433ASwitchState(ISO14443_3A_STATE_IDLE);
CheckStateRetryCount(true);
ISO144434Reset();
ISO144433ASwitchState(ISO14443_3A_STATE_READY1);
decrementRetryCount = false;
} else if (ISO144433AIsHalt(Buffer, BitCount)) {
LogEntry(LOG_INFO_APP_CMD_HALT, NULL, 0);
Expand Down Expand Up @@ -365,7 +364,7 @@ uint16_t ISO144433APiccProcess(uint8_t *Buffer, uint16_t BitCount) {
return ISO14443A_ATQA_FRAME_SIZE_BYTES * BITS_PER_BYTE;

case ISO14443_3A_STATE_READY1:
if (Cmd == ISO14443A_CMD_SELECT_CL1) {
if (Cmd == ISO14443A_CMD_SELECT_CL1 || Cmd == ISO14443A_CMD_REQA || Cmd == ISO14443A_CMD_WUPA) {
/* Load UID CL1 and perform anticollision. */
ConfigurationUidType Uid;
ApplicationGetUid(Uid);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ extern uint8_t StateRetryCount;
bool CheckStateRetryCount(bool resetByDefault);
bool CheckStateRetryCount2(bool resetByDefault, bool performLogging);

//#define IGNORE_ACK_BYTE (0x92)

/* Support functions */
void ISO144434SwitchState(Iso144434StateType NewState);
void ISO144434SwitchState2(Iso144434StateType NewState, bool performLogging);
Expand All @@ -134,7 +132,6 @@ static uint16_t ISO144434ProcessBlock(uint8_t *Buffer, uint16_t ByteCount, uint1
fullReturnBits = ByteCount * BITS_PER_BYTE + ISO14443A_CRC_FRAME_SIZE; \
fullReturnBits; \
})
/* TODO: Should we return CRC bytes when giving a NO_RESPONSE ??? ... Apparently "No". */
#define GetAndSetNoResponseCRCA(Buffer) ({ \
uint16_t fullReturnBits = 0; \
ISO14443AAppendCRCA(Buffer, 0); \
Expand Down

0 comments on commit 64d1fff

Please sign in to comment.