From 5bd300bb5974f06d12d81d34e675746b7e18c1e0 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 5 Jun 2020 14:20:52 +0200 Subject: [PATCH] hint on failed serial port --- client/src/comms.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/comms.c b/client/src/comms.c index f2788ad19..d67fccc11 100644 --- a/client/src/comms.c +++ b/client/src/comms.c @@ -556,10 +556,13 @@ bool OpenProxmark(char *port, bool wait_for_port, int timeout, bool flash_mode, // check result of uart opening if (sp == INVALID_SERIAL_PORT) { PrintAndLogEx(WARNING, "\n" _RED_("ERROR:") " invalid serial port " _YELLOW_("%s"), port); + PrintAndLogEx(HINT, "Try the shell script " _YELLOW_("`./pm3 --list`") " to get a list of possible serial ports"); sp = NULL; return false; } else if (sp == CLAIMED_SERIAL_PORT) { PrintAndLogEx(WARNING, "\n" _RED_("ERROR:") " serial port " _YELLOW_("%s") " is claimed by another process", port); + PrintAndLogEx(HINT, "Try the shell script " _YELLOW_("`./pm3 --list`") " to get a list of possible serial ports"); + sp = NULL; return false; } else {