fix: syntax erros in luascripts
This commit is contained in:
@@ -21,7 +21,7 @@ local function nfc_read_amiibo ()
|
||||
arg2 = 135
|
||||
}
|
||||
|
||||
local result, err = command.sendMIX()
|
||||
local result, err = command:sendMIX()
|
||||
if result then
|
||||
-- Do Mifare Ultralight read
|
||||
local count, cmd, arg0, data_len, offset = bin.unpack('LLLL', result)
|
||||
@@ -95,7 +95,7 @@ local function emulate_amiibo (amiibo_data)
|
||||
arg2 = uid_first,
|
||||
arg3 = uid_second
|
||||
}
|
||||
local _, err = simCmd.sendMIX()
|
||||
local _, err = simCmd:sendMIX()
|
||||
if err then
|
||||
print('Failed to start simulator', err)
|
||||
return
|
||||
|
||||
@@ -80,7 +80,7 @@ local function sendRaw(rawdata, crc, power)
|
||||
data = rawdata
|
||||
}
|
||||
local ignore_response = false
|
||||
local result, err = command.sendMIX(ignore_response)
|
||||
local result, err = command:sendMIX(ignore_response)
|
||||
if result then
|
||||
--unpack the first 4 parts of the result as longs, and the last as an extremely long string to later be cut down based on arg1, the number of bytes returned
|
||||
local count,cmd,arg1,arg2,arg3,data = bin.unpack('LLLLH512',result)
|
||||
|
||||
Reference in New Issue
Block a user