Fixed a compilation error: added conditional compilation

This commit is contained in:
md5sum-as 2022-10-31 19:07:03 +03:00
parent ad484ad194
commit a3391ddc2b

View File

@ -106,8 +106,10 @@ void PN532_Init(void) {
PN532_SAMConfig();
AddLog(LOG_LEVEL_INFO,"NFC: PN532 NFC Reader detected v%u.%u",(ver>>16) & 0xFF, (ver>>8) & 0xFF);
Pn532.present = true;
#ifdef USE_PN532_DATA_FUNCTION
Pn532.pwd_auth=Settings->pn532_password;
Pn532.pwd_pack=Settings->pn532_pack;
#endif
}
}
}