mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
Move UART open msg to avoid flood in wait mode
This commit is contained in:
parent
e0b7f22db1
commit
9a7bba2438
3 changed files with 1 additions and 2 deletions
|
@ -301,6 +301,7 @@ __attribute__((force_align_arg_pointer))
|
|||
bool OpenProxmark(void *port, bool wait_for_port, int timeout, bool flash_mode, uint32_t speed) {
|
||||
|
||||
char *portname = (char *)port;
|
||||
printf("[=] Using UART port %s.\n", portname);
|
||||
if (!wait_for_port) {
|
||||
sp = uart_open(portname, speed);
|
||||
} else {
|
||||
|
|
|
@ -74,7 +74,6 @@ struct timeval timeout = {
|
|||
};
|
||||
|
||||
serial_port uart_open(const char *pcPortName, uint32_t speed) {
|
||||
printf("[=] Using UART port %s.\n", pcPortName);
|
||||
serial_port_unix *sp = calloc(sizeof(serial_port_unix), sizeof(uint8_t));
|
||||
if (sp == 0) return INVALID_SERIAL_PORT;
|
||||
|
||||
|
|
|
@ -49,7 +49,6 @@ typedef struct {
|
|||
} serial_port_windows;
|
||||
|
||||
serial_port uart_open(const char *pcPortName, uint32_t speed) {
|
||||
printf("[=] Using UART port %s.\n", pcPortName);
|
||||
char acPortName[255];
|
||||
serial_port_windows *sp = calloc(sizeof(serial_port_windows), sizeof(uint8_t));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue