Skip to content

Commit

Permalink
Fixed hasty copy-paste
Browse files Browse the repository at this point in the history
  • Loading branch information
ceres-c committed Sep 9, 2020
1 parent c6b9366 commit d439424
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Firmware/Chameleon-Mini/Application/EM4233.c
Expand Up @@ -23,8 +23,6 @@ static enum {
} State;

bool loggedIn;
uint8_t Uid[ISO15693_GENERIC_UID_SIZE];
uint16_t ResponseByteCount;

void EM4233AppInit(void) {
State = STATE_READY;
Expand Down
2 changes: 2 additions & 0 deletions Firmware/Chameleon-Mini/Application/ISO15693-A.c
Expand Up @@ -3,7 +3,9 @@
#include <util/crc16.h>

CurrentFrame FrameInfo;
uint8_t Uid[ISO15693_GENERIC_UID_SIZE];
uint8_t MyAFI;
uint16_t ResponseByteCount;

//Refer to ISO/IEC 15693-3:2001 page 41
uint16_t calculateCRC(void *FrameBuf, uint16_t FrameBufSize) {
Expand Down
4 changes: 3 additions & 1 deletion Firmware/Chameleon-Mini/Application/ISO15693-A.h
Expand Up @@ -86,7 +86,9 @@ typedef struct {
bool Selected;
} CurrentFrame;
extern CurrentFrame FrameInfo; /* Holds current frame information */
extern uint8_t MyAFI; /* Holds current tag's AFI (is used in inventory) */
extern uint8_t Uid[];
extern uint8_t MyAFI; /* Holds current tag's AFI, used during inventory */
extern uint16_t ResponseByteCount; /* Length of response, used when building response frames */

void ISO15693AppendCRC(uint8_t *FrameBuf, uint16_t FrameBufSize);
bool ISO15693CheckCRC(void *FrameBuf, uint16_t FrameBufSize);
Expand Down
4 changes: 1 addition & 3 deletions Firmware/Chameleon-Mini/Application/TITagitstandard.c
Expand Up @@ -18,8 +18,6 @@ static enum {

uint16_t UserLockBits_Mask = 0; /* Holds lock state of blocks */
uint16_t FactoryLockBits_Mask = 0; /* Holds lock state of blocks */
uint8_t Uid[ISO15693_GENERIC_UID_SIZE];
uint16_t ResponseByteCount;

void TITagitstandardAppInit(void) {
State = STATE_READY;
Expand Down Expand Up @@ -216,7 +214,7 @@ void TITagitstandardGetUid(ConfigurationUidType Uid) {
TITagitstandardFlipUid(Uid);
}

void TITagitstandardSetUid(ConfigurationUidType Uid) {
void TITagitstandardSetUid(ConfigurationUidType NewUid) {
memcpy(Uid, NewUid, ActiveConfiguration.UidSize); // Update the local variable
// Reverse UID before writing it
TITagitstandardFlipUid(Uid);
Expand Down

0 comments on commit d439424

Please sign in to comment.