santigimeno / node-pcsclite

Bindings over pcsclite to access Smart Cards
ISC License
170 stars 127 forks source link

protocol name is not set? #18

Closed LudovicRousseau closed 10 years ago

LudovicRousseau commented 10 years ago

Running the examples/example.js example I get:

Protocol( undefined ): 2

The corresponding source code is:

            console.log('Protocol(', this.name, '):', protocol);

I guess the plan was to display "T=0" or "T=1" depending on the negociated protocol.

santigimeno commented 10 years ago

The plan was having a log like this:

Protocol (C3PO LTC31 v2): 1

The problem was that this was not the reader in the connect callback. Fixed by https://github.com/santigimeno/node-pcsclite/commit/dbc0431295cc5ffcb15c99d0fb1a39057c92992f