Permalink
Browse files

add debug option to print rfid id

  • Loading branch information...
1 parent c0e1cd0 commit ff86c9699abed832ed95a63d1945af7db17d79c3 @robogrobo committed Apr 21, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 jukebox.ino
View
@@ -41,6 +41,8 @@ char RFIDtag[14];
int RFIDindex = 0;
boolean RFIDreading = false;
+boolean debug = true;
+
// define tag id and tracks
#define NUMTAGS 8
char audiotags[NUMTAGS][14] = {"0100C4B7B2C0",
@@ -184,6 +186,14 @@ void clearTag(char one[]) {
void checkTag(char tag[]) {
if(strlen(tag) == 0) return;
+ if(debug) {
+ putstring("rfid tag id: ");
+ for(int d = 0; d < 12; d++) {
+ Serial.print(tag[d]);
+ }
+ Serial.println();
+ }
+
boolean matching = true;
// compare tag id

0 comments on commit ff86c96

Please sign in to comment.