char* port for OpenProxmark and remove global gui_serial_port_name

This commit is contained in:
Philippe Teuwen
2020-05-31 23:09:26 +02:00
parent 11e34237bb
commit e3eb8b7401
4 changed files with 15 additions and 23 deletions

View File

@@ -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));