mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
Use /dev/tty on OSX rather than /dev/cu
See https://stackoverflow.com/questions/8632586/macos-whats-the-difference-between-dev-tty-and-dev-cu/8632603
This commit is contained in:
parent
9535ce459e
commit
fdcc885aa9
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@
|
||||||
#if defined (_WIN32)
|
#if defined (_WIN32)
|
||||||
#define SERIAL_PORT_EXAMPLE_H "com3"
|
#define SERIAL_PORT_EXAMPLE_H "com3"
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
#define SERIAL_PORT_EXAMPLE_H "/dev/cu.usbmodem"
|
#define SERIAL_PORT_EXAMPLE_H "/dev/tty.usbmodemiceman1"
|
||||||
#else
|
#else
|
||||||
#define SERIAL_PORT_EXAMPLE_H "/dev/ttyACM0"
|
#define SERIAL_PORT_EXAMPLE_H "/dev/ttyACM0"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -21,7 +21,7 @@ function wait4proxmark_Linux {
|
||||||
function wait4proxmark_macOS {
|
function wait4proxmark_macOS {
|
||||||
echo >&2 "[=] Waiting for Proxmark3 to appear..."
|
echo >&2 "[=] Waiting for Proxmark3 to appear..."
|
||||||
while true; do
|
while true; do
|
||||||
PM3=$(find /dev/pm3-* /dev/cu.usbmodem* 2>/dev/null | head -1)
|
PM3=$(find /dev/pm3-* /dev/tty.usbmodem* 2>/dev/null | head -1)
|
||||||
if [[ $PM3 != "" ]]; then
|
if [[ $PM3 != "" ]]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue