Fix QR Type offset

This commit is contained in:
Michael Scire 2016-11-16 18:27:09 -08:00
parent c21f65be6a
commit 64b53c7705

View File

@ -77,7 +77,7 @@ private static byte[] GenerateQRData(PK7 pk7, int box = 0, int slot = 0, int num
byte[] data = new byte[0x1A2];
BitConverter.GetBytes(0x454B4F50).CopyTo(data, 0); // POKE magic
data[0x5] = 0xFF; // QR Type
data[0x4] = 0xFF; // QR Type
BitConverter.GetBytes(box).CopyTo(data, 0x8);
BitConverter.GetBytes(slot).CopyTo(data, 0xC);
BitConverter.GetBytes(num_copies).CopyTo(data, 0x10); // No need to check max num_copies, payload parser handles it on-console.