add deprecate and compiler warnings
This commit is contained in:
@@ -75,6 +75,8 @@
|
||||
#ifndef MFRC522_h
|
||||
#define MFRC522_h
|
||||
|
||||
#include "require_cpp11.h"
|
||||
#include "deprecated.h"
|
||||
// Enable integer limits
|
||||
#define __STDC_LIMIT_MACROS
|
||||
#include <stdint.h>
|
||||
@@ -329,6 +331,7 @@ public:
|
||||
// Functions for setting up the Arduino
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
MFRC522();
|
||||
DEPRECATED_MSG("use MFRC522(byte chipSelectPin, byte resetPowerDownPin)")
|
||||
MFRC522(byte resetPowerDownPin);
|
||||
MFRC522(byte chipSelectPin, byte resetPowerDownPin);
|
||||
|
||||
@@ -347,6 +350,7 @@ public:
|
||||
// Functions for manipulating the MFRC522
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
void PCD_Init();
|
||||
DEPRECATED_MSG("use PCD_Init(byte chipSelectPin, byte resetPowerDownPin)")
|
||||
void PCD_Init(byte resetPowerDownPin);
|
||||
void PCD_Init(byte chipSelectPin, byte resetPowerDownPin);
|
||||
void PCD_Reset();
|
||||
@@ -405,8 +409,11 @@ public:
|
||||
|
||||
// Advanced functions for MIFARE
|
||||
void MIFARE_SetAccessBits(byte *accessBitBuffer, byte g0, byte g1, byte g2, byte g3);
|
||||
DEPRECATED_MSG("will move to extra class in next version")
|
||||
bool MIFARE_OpenUidBackdoor(bool logErrors);
|
||||
DEPRECATED_MSG("will move to extra class in next version")
|
||||
bool MIFARE_SetUid(byte *newUid, byte uidSize, bool logErrors);
|
||||
DEPRECATED_MSG("will move to extra class in next version")
|
||||
bool MIFARE_UnbrickUidSector(bool logErrors);
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user