somq / nfccard-tool

💳 🛠️ The missing toolbox for reading and writing NFC cards

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failure TypeError: Cannot read properties of undefined (reading 'toString')

rfedorczuk opened this issue · comments

commented

I got error like in title.

I am simple using it like this:

reader
      .read(4, 16, 16)
      .then((cardHeader) => {
        return nfcCard.parseInfo(cardHeader);
      })
at Object.decimalToHexString (C:\Users\Radoslaw\Desktop\nfc-pcsc-master\nfc-pcsc-master\node_modules\nfccard-tool\lib\utils.js:56:21)
    at nfcCardTool.getHeaderRawValues (C:\Users\Radoslaw\Desktop\nfc-pcsc-master\nfc-pcsc-master\node_modules\nfccard-tool\lib\nfccard-tool.js:57:25)
    at nfcCardTool.parseInfo (C:\Users\Radoslaw\Desktop\nfc-pcsc-master\nfc-pcsc-master\node_modules\nfccard-tool\lib\nfccard-tool.js:274:32)

Card is Mifare classic.

commented

fixed

4, 16, 16

how u fix this?