bugfix repalce the same tag
This commit is contained in:
parent
0812b89909
commit
1ec48fcf37
2 changed files with 6 additions and 2 deletions
|
@ -36,6 +36,8 @@
|
|||
//#define PLATFORM_HAS_BUTTON 1
|
||||
#define PLATFORM_HAS_BATTERY 1
|
||||
|
||||
#define LOOP_INTERVAL (1 * CLOCK_SECOND)
|
||||
|
||||
/* For Debug: Dont allow MCU sleeping between channel checks */
|
||||
//#undef RDC_CONF_MCU_SLEEP
|
||||
//#define RDC_CONF_MCU_SLEEP 0
|
||||
|
|
|
@ -159,9 +159,11 @@ void loop (void)
|
|||
Serial1.print(F("In dec: "));
|
||||
printDec(rfid.uid.uidByte, rfid.uid.size);
|
||||
Serial1.println();
|
||||
}else{
|
||||
Serial1.println(F("Card read previously."));
|
||||
coap_rfid();
|
||||
}
|
||||
else Serial1.println(F("Card read previously."));
|
||||
|
||||
|
||||
// Halt PICC
|
||||
rfid.PICC_HaltA();
|
||||
|
||||
|
|
Loading…
Reference in a new issue