mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
chg: 'script run 14araw' got some local functions now
This commit is contained in:
parent
85b1c6bdfb
commit
26e6e269d1
1 changed files with 3 additions and 8 deletions
|
@ -4,8 +4,6 @@ local lib14a = require('read14a')
|
||||||
|
|
||||||
example = "script run 14araw -x 6000F57b"
|
example = "script run 14araw -x 6000F57b"
|
||||||
author = "Martin Holst Swende"
|
author = "Martin Holst Swende"
|
||||||
|
|
||||||
|
|
||||||
desc =
|
desc =
|
||||||
[[
|
[[
|
||||||
This is a script to allow raw 1444a commands to be sent and received.
|
This is a script to allow raw 1444a commands to be sent and received.
|
||||||
|
@ -50,26 +48,23 @@ local DEBUG = false -- the debug flag
|
||||||
|
|
||||||
---
|
---
|
||||||
-- A debug printout-function
|
-- A debug printout-function
|
||||||
function dbg(args)
|
local function dbg(args)
|
||||||
if DEBUG then
|
if DEBUG then
|
||||||
print("###", args)
|
print("###", args)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
---
|
---
|
||||||
-- This is only meant to be used when errors occur
|
-- This is only meant to be used when errors occur
|
||||||
function oops(err)
|
local function oops(err)
|
||||||
print("ERROR: ",err)
|
print("ERROR: ",err)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
-- Usage help
|
-- Usage help
|
||||||
function help()
|
local function help()
|
||||||
print(desc)
|
print(desc)
|
||||||
print("Example usage")
|
print("Example usage")
|
||||||
print(example)
|
print(example)
|
||||||
end
|
end
|
||||||
|
|
||||||
---
|
---
|
||||||
-- The main entry point
|
-- The main entry point
|
||||||
function main(args)
|
function main(args)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue