mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
chg: write serial port in window title (plot/slider)
This commit is contained in:
parent
60b444d5d8
commit
996b41dce7
5 changed files with 28 additions and 2 deletions
|
@ -24,6 +24,8 @@
|
|||
//#define COMMS_DEBUG
|
||||
//#define COMMS_DEBUG_RAW
|
||||
|
||||
uint8_t gui_serial_port_name[FILE_PATH_SIZE];
|
||||
|
||||
// Serial port that we are communicating with the PM3 on.
|
||||
static serial_port sp = NULL;
|
||||
|
||||
|
@ -568,6 +570,9 @@ bool OpenProxmark(void *port, bool wait_for_port, int timeout, bool flash_mode,
|
|||
uint16_t len = MIN(strlen(portname), FILE_PATH_SIZE - 1);
|
||||
memset(conn.serial_port_name, 0, FILE_PATH_SIZE);
|
||||
memcpy(conn.serial_port_name, portname, len);
|
||||
|
||||
memset(gui_serial_port_name, 0, FILE_PATH_SIZE);
|
||||
memcpy(gui_serial_port_name, portname, len);
|
||||
}
|
||||
conn.run = true;
|
||||
conn.block_after_ACK = flash_mode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue