mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix decoding SecureDigital CID.
This commit is contained in:
@@ -82,8 +82,8 @@ namespace Aaru.Decoders.SecureDigital
|
||||
{
|
||||
Manufacturer = response[0],
|
||||
ProductRevision = response[8],
|
||||
ProductSerialNumber = BitConverter.ToUInt32(response, 9),
|
||||
ManufacturingDate = (ushort)(((response[13] & 0x0F) << 4) + response[14]),
|
||||
ProductSerialNumber = Swapping.Swap(BitConverter.ToUInt32(response, 9)),
|
||||
ManufacturingDate = (ushort)(((response[13] & 0x0F) << 8) + response[14]),
|
||||
CRC = (byte)((response[15] & 0xFE) >> 1)
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user