未验证 提交 5eb2d354 编写于 作者: J jdbruner 提交者: GitHub

Reverse byte order of ATQA calculated by ListenToIsoCard14443TypeA (issue 2004) (#2005)

The two bytes of the ATQA need to be treated as a little-endian integer.
Co-authored-by: NJohn D. Bruner <brunerhome@live.com>
上级 e2e3628f
......@@ -264,7 +264,7 @@ namespace Iot.Device.Mfrc522
}
while (true);
card.Atqa = BinaryPrimitives.ReadUInt16BigEndian(atqa);
card.Atqa = BinaryPrimitives.ReadUInt16LittleEndian(atqa);
var status = Select(out byte[]? nfcId, out byte sak);
if (status != Status.Ok)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册