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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user