Allow ISO14443A cards now, we don't use it for any other anyway.

This commit is contained in:
Ondrej Mikle 2014-07-19 17:07:09 +02:00
parent c5f37bbaf8
commit 9e1f4e2bcd
2 changed files with 8 additions and 8 deletions

View file

@ -85,14 +85,14 @@ std::string NFCDevice::scanUID() throw(NFCError)
} }
const nfc_modulation NFCDevice::_modulations[5] = { const nfc_modulation NFCDevice::_modulations[5] = {
{ /*.nmt = */ NMT_ISO14443A, /* .nbr = */ NBR_106 }, { /*.nmt = */ NMT_ISO14443A, /* .nbr = */ NBR_106 }
{ /*.nmt = */ NMT_ISO14443B, /* .nbr = */ NBR_106 }, //{ /*.nmt = */ NMT_ISO14443B, /* .nbr = */ NBR_106 },
{ /*.nmt = */ NMT_FELICA, /* .nbr = */ NBR_212 }, //{ /*.nmt = */ NMT_FELICA, /* .nbr = */ NBR_212 },
{ /*.nmt = */ NMT_FELICA, /* .nbr = */ NBR_424 }, //{ /*.nmt = */ NMT_FELICA, /* .nbr = */ NBR_424 },
{ /*.nmt = */ NMT_JEWEL, /* .nbr = */ NBR_106 }, //{ /*.nmt = */ NMT_JEWEL, /* .nbr = */ NBR_106 },
}; };
const size_t _modulationsLen = 5; const size_t NFCDevice::_modulationsLen = 1;
NFCError::NFCError(const std::string& msg) NFCError::NFCError(const std::string& msg)

View file

@ -95,7 +95,7 @@ protected:
static const nfc_modulation _modulations[5]; static const nfc_modulation _modulations[5];
/** Number of modulations in _modulations array */ /** Number of modulations in _modulations array */
static const size_t _modulationsLen = 5; static const size_t _modulationsLen;
/** libnfc-specific opaque context */ /** libnfc-specific opaque context */
nfc_context *_nfcContext; nfc_context *_nfcContext;