rename global conn

This commit is contained in:
Philippe Teuwen committed 2021-08-21 20:21:08 +02:00
1 parent 8280fc3c07
commit 6a2f2b3979
23 files changed
+87 -87

No files matched your search

+2 -2
View File
@@ -836,11 +836,11 @@ static int CmdConnect(const char *Cmd) {
// default back to previous used serial port
if (strlen(port) == 0) {
if (strlen(conn.serial_port_name) == 0) {
if (strlen(g_conn.serial_port_name) == 0) {
PrintAndLogEx(WARNING, "Must specify a serial port");
return PM3_EINVARG;
}
memcpy(port, conn.serial_port_name, sizeof(port));
memcpy(port, g_conn.serial_port_name, sizeof(port));
}
if (session.pm3_present) {