char* port for OpenProxmark and remove global gui_serial_port_name
This commit is contained in:
1 parent
11e34237bb
commit
e3eb8b7401
4 files changed
+15
-23
No files matched your search
+1
-1
@@ -580,7 +580,7 @@ static int CmdConnect(const char *Cmd) {
|
||||
|
||||
// default back to previous used serial port
|
||||
if (strlen(port) == 0) {
|
||||
if (strlen((char *)conn.serial_port_name) == 0) {
|
||||
if (strlen(conn.serial_port_name) == 0) {
|
||||
return usage_hw_connect();
|
||||
}
|
||||
memcpy(port, conn.serial_port_name, sizeof(port));
|
||||
|
||||
Reference in new issue
Block a user