mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
btaddon scripts: warn for pyserial
This commit is contained in:
parent
15b661dbfb
commit
2177211b7a
2 changed files with 12 additions and 2 deletions
|
@ -2,7 +2,11 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import serial
|
try:
|
||||||
|
import serial
|
||||||
|
except ModuleNotFoundError:
|
||||||
|
print("Please install pyserial module first.")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if len(sys.argv) < 2:
|
if len(sys.argv) < 2:
|
||||||
print('Usage: %s <baudrate>' % sys.argv[0])
|
print('Usage: %s <baudrate>' % sys.argv[0])
|
||||||
|
|
|
@ -1,7 +1,13 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import serial
|
import sys
|
||||||
|
|
||||||
|
try:
|
||||||
|
import serial
|
||||||
|
except ModuleNotFoundError:
|
||||||
|
print("Please install pyserial module first.")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
name = b'PM3_RDV4.0'
|
name = b'PM3_RDV4.0'
|
||||||
pin = b'1234'
|
pin = b'1234'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue