Move UART open msg to avoid flood in wait mode

This commit is contained in:
Philippe Teuwen 2019-04-14 18:49:19 +02:00
commit 9a7bba2438
3 changed files with 1 additions and 2 deletions

View file

@ -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 {

View file

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

View file

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