diff --git a/client/cmdhw.c b/client/cmdhw.c index 8cff17552..64528006a 100644 --- a/client/cmdhw.c +++ b/client/cmdhw.c @@ -57,7 +57,7 @@ static int usage_hw_connect(void) { PrintAndLogEx(NORMAL, " serial port to connect to"); PrintAndLogEx(NORMAL, ""); PrintAndLogEx(NORMAL, "Examples:"); - PrintAndLogEx(NORMAL, " hw connect "SERIAL_PORT_H); + PrintAndLogEx(NORMAL, " hw connect "SERIAL_PORT_EXAMPLE_H); return PM3_SUCCESS; } diff --git a/client/flasher.c b/client/flasher.c index 844b7accf..80b59d90d 100644 --- a/client/flasher.c +++ b/client/flasher.c @@ -25,7 +25,7 @@ static void usage(char *argv0) { PrintAndLogEx(NORMAL, "Usage: %s [-b] image.elf [image.elf...]\n", argv0); PrintAndLogEx(NORMAL, "\t-b\tEnable flashing of bootloader area (DANGEROUS)\n"); - PrintAndLogEx(NORMAL, "\nExample:\n\n\t %s "SERIAL_PORT_H" armsrc/obj/fullimage.elf", argv0); + PrintAndLogEx(NORMAL, "\nExample:\n\n\t %s "SERIAL_PORT_EXAMPLE_H" armsrc/obj/fullimage.elf", argv0); #ifdef __linux__ PrintAndLogEx(NORMAL, "\nNote (Linux): if the flasher gets stuck in 'Waiting for Proxmark3 to reappear on ',"); PrintAndLogEx(NORMAL, " you need to blacklist Proxmark3 for modem-manager - see wiki for more details:\n"); diff --git a/client/proxmark3.c b/client/proxmark3.c index 1543c7f6e..ffbe344e2 100644 --- a/client/proxmark3.c +++ b/client/proxmark3.c @@ -276,15 +276,15 @@ static void show_help(bool showFullHelp, char *exec_name) { PrintAndLogEx(NORMAL, "\nsamples:"); PrintAndLogEx(NORMAL, " %s -h\n", exec_name); PrintAndLogEx(NORMAL, " %s -m\n", exec_name); - PrintAndLogEx(NORMAL, " %s "SERIAL_PORT_H" -f -- flush output everytime\n", exec_name); - PrintAndLogEx(NORMAL, " %s "SERIAL_PORT_H" -w -- wait for serial port\n", exec_name); + PrintAndLogEx(NORMAL, " %s "SERIAL_PORT_EXAMPLE_H" -f -- flush output everytime\n", exec_name); + PrintAndLogEx(NORMAL, " %s "SERIAL_PORT_EXAMPLE_H" -w -- wait for serial port\n", exec_name); PrintAndLogEx(NORMAL, "\n how to run Proxmark3 client\n"); - PrintAndLogEx(NORMAL, " %s "SERIAL_PORT_H" -- runs the pm3 client\n", exec_name); + PrintAndLogEx(NORMAL, " %s "SERIAL_PORT_EXAMPLE_H" -- runs the pm3 client\n", exec_name); PrintAndLogEx(NORMAL, " %s -- runs the pm3 client in OFFLINE mode\n", exec_name); PrintAndLogEx(NORMAL, "\n how to execute different commands from terminal\n"); - PrintAndLogEx(NORMAL, " %s "SERIAL_PORT_H" -c \"hf mf chk 1* ?\" -- execute cmd and quit client\n", exec_name); - PrintAndLogEx(NORMAL, " %s "SERIAL_PORT_H" -l hf_read -- execute lua script " _YELLOW_("`hf_read`")"and quit client\n", exec_name); - PrintAndLogEx(NORMAL, " %s "SERIAL_PORT_H" -s mycmds.txt -- execute each pm3 cmd in file and quit client\n", exec_name); + PrintAndLogEx(NORMAL, " %s "SERIAL_PORT_EXAMPLE_H" -c \"hf mf chk 1* ?\" -- execute cmd and quit client\n", exec_name); + PrintAndLogEx(NORMAL, " %s "SERIAL_PORT_EXAMPLE_H" -l hf_read -- execute lua script " _YELLOW_("`hf_read`")"and quit client\n", exec_name); + PrintAndLogEx(NORMAL, " %s "SERIAL_PORT_EXAMPLE_H" -s mycmds.txt -- execute each pm3 cmd in file and quit client\n", exec_name); } } diff --git a/uart/uart.h b/uart/uart.h index efd582c0b..b359d6af2 100644 --- a/uart/uart.h +++ b/uart/uart.h @@ -45,11 +45,11 @@ #if defined (_WIN32) -#define SERIAL_PORT_H "com3" +#define SERIAL_PORT_EXAMPLE_H "com3" #elif defined(__APPLE__) -#define SERIAL_PORT_H "/dev/cu.usbmodem" +#define SERIAL_PORT_EXAMPLE_H "/dev/cu.usbmodem" #else -#define SERIAL_PORT_H "/dev/ttyACM0" +#define SERIAL_PORT_EXAMPLE_H "/dev/ttyACM0" #endif /* serial_port is declared as a void*, which you should cast to whatever type