未验证 提交 68e50c97 编写于 作者: F Fady Anwar 提交者: GitHub

Fixing an inverted timeout condition (#1871)

Card reading timeout should happen when dtTimeout < DateTime.Now not the other way around, otherwise ListenToCardIso14443TypeA(out Data106kbpsTypeA card, TimeSpan timeout) will always return false. i.e. since dtTimeout is in the future it will be always greater than DateTime.Now
上级 324577fd
......@@ -254,7 +254,7 @@ namespace Iot.Device.Mfrc522
break;
}
if (dtTimeout > DateTime.Now)
if (dtTimeout < DateTime.Now)
{
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册