-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add ReselectAfterError property to MifareCard and UltralightCard #2062
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for all those fixes and improvements!
src/devices/Card/Mifare/README.md
Outdated
Console.WriteLine($"Tg: {decrypted.TargetNumber}, ATQA: {decrypted.Atqa} SAK: {decrypted.Sak}, NFCID: {BitConverter.ToString(decrypted.NfcId)}"); | ||
if (decrypted.Ats is object) | ||
Console.Write($"Tg: {decrypted.TargetNumber}, ATQA: {decrypted.Atqa} SAK: {decrypted.Sak}, NFCID: {BitConverter.ToString(decrypted.NfcId)}"); | ||
if (decrypted.Ats is object) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be consistent with the rest
if (decrypted.Ats is object) { | |
if (decrypted.Ats is object) | |
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, fixed.
Co-authored-by: Krzysztof Wicher <mordotymoja@gmail.com>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Add a new property
ReselectAfterError
toMifareCard
andUltralightCard
. Whentrue
, if an error occurs when performing an NFC transceive operation (RunMifareCardCommand
orRunUltralightCommand
, respectively), callReselectCard
to re-select the card. If it isfalse
, the caller is responsible for reselecting the card.Update the examples in the README files.
Microsoft Reviewers: Open in CodeFlow