Skip to content

Commit

Permalink
define NDEF_USE_SERIAL and NDEF_SUPPORT_MIFARE_CLASSIC
Browse files Browse the repository at this point in the history
  • Loading branch information
don committed May 12, 2018
1 parent 3d4f576 commit 3ccd258
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MifareClassic.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifdef NDEF_SUPPORT_MIFARE_CLASSIC
#include "MifareClassic.h"
#ifdef NDEF_SUPPORT_MIFARE_CLASSIC

#define BLOCK_SIZE 16
#define LONG_TLV_SIZE 4
Expand Down
3 changes: 3 additions & 0 deletions MifareClassic.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#ifndef MifareClassic_h
#define MifareClassic_h

// Comment out next line to remove Mifare Classic and save memory
#define NDEF_SUPPORT_MIFARE_CLASSIC

#ifdef NDEF_SUPPORT_MIFARE_CLASSIC

#include <Due.h>
Expand Down
5 changes: 4 additions & 1 deletion Ndef.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#ifndef Ndef_h
#define Ndef_h

// To save memory and stop serial output comment out the next line
#define NDEF_USE_SERIAL

/* NOTE: To use the Ndef library in your code, don't include Ndef.h
See README.md for details on which files to include in your sketch.
*/
Expand All @@ -11,6 +14,6 @@
void PrintHex(const byte *data, const long numBytes);
void PrintHexChar(const byte *data, const long numBytes);
void DumpHex(const byte *data, const long numBytes, const int blockSize);

#endif

#endif

0 comments on commit 3ccd258

Please sign in to comment.