use F() macro for return strings by functions
fkt GetStatusCodeName() and PICC_GetTypeName() return pointer to flash saves about 450 byte memory if you need char: copy it from the flash
This commit is contained in:
10
MFRC522.h
10
MFRC522.h
@@ -321,10 +321,14 @@ public:
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
// Support functions
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
byte PCD_MIFARE_Transceive( byte *sendData, byte sendLen, bool acceptTimeout = false);
|
||||
const char *GetStatusCodeName(byte code);
|
||||
byte PCD_MIFARE_Transceive(byte *sendData, byte sendLen, bool acceptTimeout = false);
|
||||
// old function used too much memory, now name moved to flash; if you need char, copy from flash to memory
|
||||
//const char *GetStatusCodeName(byte code);
|
||||
const __FlashStringHelper *GetStatusCodeName(byte code);
|
||||
byte PICC_GetType(byte sak);
|
||||
const char *PICC_GetTypeName(byte type);
|
||||
// old function used too much memory, now name moved to flash; if you need char, copy from flash to memory
|
||||
//const char *PICC_GetTypeName(byte type);
|
||||
const __FlashStringHelper *PICC_GetTypeName(byte type);
|
||||
void PICC_DumpToSerial(Uid *uid);
|
||||
void PICC_DumpMifareClassicToSerial(Uid *uid, byte piccType, MIFARE_Key *key);
|
||||
void PICC_DumpMifareClassicSectorToSerial(Uid *uid, MIFARE_Key *key, byte sector);
|
||||
|
||||
Reference in New Issue
Block a user