Skip to content

fix: send card information towards CardDisconnected event#4

Open
nikolay-panovski wants to merge 1 commit intoglebteterin:masterfrom
nikolay-panovski:fix-raise-card-disconnected
Open

fix: send card information towards CardDisconnected event#4
nikolay-panovski wants to merge 1 commit intoglebteterin:masterfrom
nikolay-panovski:fix-raise-card-disconnected

Conversation

@nikolay-panovski
Copy link
Copy Markdown

The bug was that CardDisconnected event fired without any information passed to it. If this is used in a context where multiple readers submit information to one PC, this event did not allow recognizing which specific reader just had a card disconnected from it.

This commit passes the
var currentCard = LastConnectedCard(...)
to the "raise method" call and passes non-null CardreaderEventArgs from Cardreader.OnCardDisconnected() .

The bug was that CardDisconnected event fired without any information passed to it. If this is used in a context where multiple readers submit information to one PC, this event did not allow recognizing which specific reader just had a card disconnected from it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant