PN532 NFC library for Seeed Studio's NFC Shield

Fork of PN532 by Yihui Xiong

Files at this revision

API Documentation at this revision

Comitter:
screamer
Date:
Tue Mar 25 16:48:10 2014 +0000
Parent:
6:418ee8924317
Child:
8:7ffdaea03ff9
Commit message:
Fixed compile warnings

Changed in this revision

NdefMessage.cpp Show annotated file Show diff for this revision Revisions of this file
PN532.cpp Show annotated file Show diff for this revision Revisions of this file
emulatetag.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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){