pokusew / nfc-pcsc

Easy reading and writing NFC tags and cards in Node.js
MIT License
533 stars 132 forks source link

Add disposition parameter in disconnect method #145

Open amessara-billettiqueservices opened 1 year ago

amessara-billettiqueservices commented 1 year ago

https://github.com/pokusew/nfc-pcsc/blob/8f47cf9e623f45d8318a13460084068889f76ede/src/Reader.js#L257

It would be very help full to add the disposition parameter to the disconnect method. The default SCARD_LEAVE_CARD is fine, but sometimes other dispositions are needed especially the SCARD_RESET_CARD.

pke commented 3 months ago

@pokusew would you accept a PR for this simple change?

pokusew commented 3 months ago

Hi @pke, yes, I would. 🙂