NO_SUCH_CARD retcode
parent
d5ad446682
commit
657398da2f
|
@ -10,6 +10,8 @@
|
|||
#include <openssl/sha.h>
|
||||
#include "config.h"
|
||||
|
||||
const int NO_SUCH_CARD = LDAP_NO_SUCH_OBJECT;
|
||||
|
||||
static char* ldap_attrs_hashes[] = {
|
||||
"uid",
|
||||
"mifareIDHash",
|
||||
|
|
|
@ -2,5 +2,6 @@
|
|||
#define __LDAP_H__
|
||||
|
||||
int ldap_dn_by_mifare(char *MifareID, char *DNOut, int *DNLength);
|
||||
const int NO_SUCH_CARD;
|
||||
|
||||
#endif
|
||||
|
|
|
@ -45,7 +45,7 @@ void nfc_poll(void)
|
|||
|
||||
if (LDAPResult > 0)
|
||||
{
|
||||
if (LDAPResult == 1)
|
||||
if (LDAPResult == NO_SUCH_CARD)
|
||||
{
|
||||
tts_speak("Nieznana karta.");
|
||||
sleep(5);
|
||||
|
|
Reference in New Issue