bugfix repalce the same tag

This commit is contained in:
Harald Pichler 2016-12-16 13:03:44 +01:00
parent 0812b89909
commit 1ec48fcf37
2 changed files with 6 additions and 2 deletions

View file

@ -36,6 +36,8 @@
//#define PLATFORM_HAS_BUTTON 1 //#define PLATFORM_HAS_BUTTON 1
#define PLATFORM_HAS_BATTERY 1 #define PLATFORM_HAS_BATTERY 1
#define LOOP_INTERVAL (1 * CLOCK_SECOND)
/* For Debug: Dont allow MCU sleeping between channel checks */ /* For Debug: Dont allow MCU sleeping between channel checks */
//#undef RDC_CONF_MCU_SLEEP //#undef RDC_CONF_MCU_SLEEP
//#define RDC_CONF_MCU_SLEEP 0 //#define RDC_CONF_MCU_SLEEP 0

View file

@ -159,9 +159,11 @@ void loop (void)
Serial1.print(F("In dec: ")); Serial1.print(F("In dec: "));
printDec(rfid.uid.uidByte, rfid.uid.size); printDec(rfid.uid.uidByte, rfid.uid.size);
Serial1.println(); Serial1.println();
}else{
Serial1.println(F("Card read previously."));
coap_rfid();
} }
else Serial1.println(F("Card read previously."));
// Halt PICC // Halt PICC
rfid.PICC_HaltA(); rfid.PICC_HaltA();