mirror of
https://github.com/brmlab/brmdoor_libnfc.git
synced 2025-06-08 00:24:00 +02:00
Allow ISO14443A cards now, we don't use it for any other anyway.
This commit is contained in:
parent
c5f37bbaf8
commit
9e1f4e2bcd
2 changed files with 8 additions and 8 deletions
|
@ -85,14 +85,14 @@ std::string NFCDevice::scanUID() throw(NFCError)
|
|||
}
|
||||
|
||||
const nfc_modulation NFCDevice::_modulations[5] = {
|
||||
{ /*.nmt = */ NMT_ISO14443A, /* .nbr = */ NBR_106 },
|
||||
{ /*.nmt = */ NMT_ISO14443B, /* .nbr = */ NBR_106 },
|
||||
{ /*.nmt = */ NMT_FELICA, /* .nbr = */ NBR_212 },
|
||||
{ /*.nmt = */ NMT_FELICA, /* .nbr = */ NBR_424 },
|
||||
{ /*.nmt = */ NMT_JEWEL, /* .nbr = */ NBR_106 },
|
||||
{ /*.nmt = */ NMT_ISO14443A, /* .nbr = */ NBR_106 }
|
||||
//{ /*.nmt = */ NMT_ISO14443B, /* .nbr = */ NBR_106 },
|
||||
//{ /*.nmt = */ NMT_FELICA, /* .nbr = */ NBR_212 },
|
||||
//{ /*.nmt = */ NMT_FELICA, /* .nbr = */ NBR_424 },
|
||||
//{ /*.nmt = */ NMT_JEWEL, /* .nbr = */ NBR_106 },
|
||||
};
|
||||
|
||||
const size_t _modulationsLen = 5;
|
||||
const size_t NFCDevice::_modulationsLen = 1;
|
||||
|
||||
|
||||
NFCError::NFCError(const std::string& msg)
|
||||
|
|
|
@ -92,10 +92,10 @@ public:
|
|||
protected:
|
||||
|
||||
/** Modulations that specify cards accepted by reader */
|
||||
static const nfc_modulation _modulations[5];
|
||||
static const nfc_modulation _modulations[5];
|
||||
|
||||
/** Number of modulations in _modulations array */
|
||||
static const size_t _modulationsLen = 5;
|
||||
static const size_t _modulationsLen;
|
||||
|
||||
/** libnfc-specific opaque context */
|
||||
nfc_context *_nfcContext;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue