FIX: ntag215 is 7.. Thanks @axfla for pointing it out.

This commit is contained in:
Chris 2018-08-22 22:36:41 +02:00
parent af89c35e43
commit 4edcd908a7

View file

@ -85,7 +85,7 @@ local function emulate_amiibo (amiibo_data)
print(string.format('Simulating with UID: 0x%04x 0x%04x', uid_first, uid_second))
-- Begin simulating NTAG215
local simCmd = Command:new{cmd = cmds.CMD_SIMULATE_TAG_ISO_14443a, arg1 = 6, arg2 = uid_first, arg3 = uid_second}
local simCmd = Command:new{cmd = cmds.CMD_SIMULATE_TAG_ISO_14443a, arg1 = 7, arg2 = uid_first, arg3 = uid_second}
local _, err = reader.sendToDevice(simCmd)
if err then
print('Failed to start simulator', err)