Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Seeed_NFC_Shield_write Nucleo_test_nfc
Fork of PN532 by
Revision 6:26c1b3b6c192, committed 2014-03-25
- Comitter:
- screamer
- Date:
- Tue Mar 25 16:48:10 2014 +0000
- Parent:
- 5:418ee8924317
- Commit message:
- Fixed compile warnings
Changed in this revision
--- a/NdefMessage.cpp Tue Mar 25 16:00:44 2014 +0000
+++ b/NdefMessage.cpp Tue Mar 25 16:48:10 2014 +0000
@@ -24,9 +24,9 @@
// decode tnf - first uint8_t is tnf with bit flags
// see the NFDEF spec for more info
uint8_t tnf_uint8_t = data[index];
- bool mb = (tnf_uint8_t & 0x80) != 0;
+ //bool mb = (tnf_uint8_t & 0x80) != 0;
bool me = (tnf_uint8_t & 0x40) != 0;
- bool cf = (tnf_uint8_t & 0x20) != 0;
+ //bool cf = (tnf_uint8_t & 0x20) != 0;
bool sr = (tnf_uint8_t & 0x10) != 0;
bool il = (tnf_uint8_t & 0x8) != 0;
uint8_t tnf = (tnf_uint8_t & 0x7);
--- a/PN532.cpp Tue Mar 25 16:00:44 2014 +0000
+++ b/PN532.cpp Tue Mar 25 16:48:10 2014 +0000
@@ -665,7 +665,7 @@
/**************************************************************************/
bool PN532::inDataExchange(uint8_t *send, uint8_t sendLength, uint8_t *response, uint8_t *responseLength)
{
- uint8_t i;
+ //uint8_t i;
pn532_packetbuffer[0] = 0x40; // PN532_COMMAND_INDATAEXCHANGE;
pn532_packetbuffer[1] = inListedTag;
--- a/emulatetag.cpp Tue Mar 25 16:00:44 2014 +0000
+++ b/emulatetag.cpp Tue Mar 25 16:48:10 2014 +0000
@@ -116,7 +116,7 @@
uint8_t sendlen;
int16_t status;
tag_file currentFile = NONE;
- uint16_t cc_size = sizeof(compatibility_container);
+ //uint16_t cc_size = sizeof(compatibility_container);
bool runLoop = true;
while(runLoop){

Seeed NFC Shield V2.0