Skip to content

Commit

Permalink
feat: remove duplicated start discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
DeimosHall committed Aug 31, 2023
1 parent 1e03614 commit 99edc2f
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 308 deletions.
185 changes: 0 additions & 185 deletions examples/DetectTagsOld/DetectTagsOld.ino

This file was deleted.

71 changes: 0 additions & 71 deletions examples/DetectingReadersOld/DetectingReadersOld.ino

This file was deleted.

19 changes: 0 additions & 19 deletions examples/DetectingReadersOld/Makefile

This file was deleted.

6 changes: 3 additions & 3 deletions examples/ISO14443-3A_read_block/ISO14443-3A_read_block.ino
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ uint8_t mode = 1; // modes: 1 =
void ResetMode(){ //Reset the configuration mode after each reading
Serial.println("Re-initializing...");
nfc.configMode(mode);
nfc.startDiscovery(mode);
nfc.StartDiscovery(mode);
}

void PrintBuf(const byte * data, const uint32_t numBytes){ //Print hex data buffer in format
Expand Down Expand Up @@ -86,7 +86,7 @@ void setup(){
Serial.println("The Configure Mode failed!!");
while (1);
}
nfc.startDiscovery(mode); //NCI Discovery mode
nfc.StartDiscovery(mode); //NCI Discovery mode
Serial.println("Waiting for an ISO14443-3A Card ...");
}

Expand Down Expand Up @@ -131,7 +131,7 @@ void loop(){
Serial.println("CARD REMOVED!");

nfc.stopDiscovery();
nfc.startDiscovery(mode);
nfc.StartDiscovery(mode);
}
ResetMode();
delay(500);
Expand Down
6 changes: 3 additions & 3 deletions examples/ISO14443-3A_write_block/ISO14443-3A_write_block.ino
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ uint8_t mode = 1; // modes: 1 =
void ResetMode(){ //Reset the configuration mode after each reading
Serial.println("Re-initializing...");
nfc.configMode(mode);
nfc.startDiscovery(mode);
nfc.StartDiscovery(mode);
}

void PrintBuf(const byte * data, const uint32_t numBytes){ //Print hex data buffer in format
Expand Down Expand Up @@ -102,7 +102,7 @@ void setup(){
Serial.println("The Configure Mode failed!!");
while (1);
}
nfc.startDiscovery(mode); //NCI Discovery mode
nfc.StartDiscovery(mode); //NCI Discovery mode
Serial.println("Waiting for an ISO14443-3A Card ...");
}

Expand Down Expand Up @@ -147,7 +147,7 @@ void loop(){
Serial.println("CARD REMOVED!");

nfc.stopDiscovery();
nfc.startDiscovery(mode);
nfc.StartDiscovery(mode);
}
ResetMode();
delay(500);
Expand Down
6 changes: 3 additions & 3 deletions examples/ISO15693_read_block/ISO15693_read_block.ino
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ uint8_t mode = 1; // modes: 1 =
void ResetMode(){ //Reset the configuration mode after each reading
Serial.println("Re-initializing...");
nfc.configMode(mode);
nfc.startDiscovery(mode);
nfc.StartDiscovery(mode);
}

void PrintBuf(const byte * data, const uint32_t numBytes){ //Print hex data buffer in format
Expand Down Expand Up @@ -87,7 +87,7 @@ void setup(){
Serial.println("The Configure Mode is failed!!");
while (1);
}
nfc.startDiscovery(mode); //NCI Discovery mode
nfc.StartDiscovery(mode); //NCI Discovery mode
Serial.println("Waiting for an ISO15693 Card ...");
}

Expand Down Expand Up @@ -128,7 +128,7 @@ void loop(){
Serial.println("CARD REMOVED!");

nfc.stopDiscovery();
nfc.startDiscovery(mode);
nfc.StartDiscovery(mode);
}
ResetMode();
delay(500);
Expand Down
6 changes: 3 additions & 3 deletions examples/ISO15693_write_block/ISO15693_write_block.ino
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ void setup(){
Serial.println("The Configure Mode is failed!!");
while (1);
}
nfc.startDiscovery(mode); //NCI Discovery mode
nfc.StartDiscovery(mode); //NCI Discovery mode
Serial.println("Waiting for an ISO15693 Card ...");
}

void ResetMode(){ //Reset the configuration mode after each reading
Serial.println("Re-initializing...");
nfc.configMode(mode);
nfc.startDiscovery(mode);
nfc.StartDiscovery(mode);
}

void PrintBuf(const byte * data, const uint32_t numBytes){ //Print hex data buffer in format
Expand Down Expand Up @@ -141,7 +141,7 @@ void loop(){
Serial.println("CARD REMOVED!");

nfc.stopDiscovery();
nfc.startDiscovery(mode);
nfc.StartDiscovery(mode);
}
ResetMode();
delay(500);
Expand Down
File renamed without changes.
Loading

0 comments on commit 99edc2f

Please sign in to comment.