mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-07-16 10:03:04 -07:00
SWIG experiments: introduce context
This commit is contained in:
parent
a503dfcd98
commit
1562b75fc9
11 changed files with 435 additions and 88 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
import pm3
|
||||
|
||||
p=pm3.open("/dev/ttyACM0")
|
||||
ctx=pm3.init()
|
||||
p=pm3.open(ctx, "/dev/ttyACM0")
|
||||
pm3.console(p, "hw status")
|
||||
pm3.close(p)
|
||||
pm3.exit(ctx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue