From f17ce1fd682c00bdecd40058ece14762c935decd Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 28 May 2023 12:40:57 +0200 Subject: [PATCH] revert one debug message --- client/src/uart/uart_posix.c | 1 - client/src/uart/uart_win32.c | 1 - 2 files changed, 2 deletions(-) diff --git a/client/src/uart/uart_posix.c b/client/src/uart/uart_posix.c index 58e497d55..86d76317b 100644 --- a/client/src/uart/uart_posix.c +++ b/client/src/uart/uart_posix.c @@ -263,7 +263,6 @@ serial_port uart_open(const char *pcPortName, uint32_t speed) { sp->fd = open(pcPortName, O_RDWR | O_NOCTTY | O_NDELAY | O_NONBLOCK); if (sp->fd == -1) { - PrintAndLogEx(ERR, "error: UART file descriptor"); uart_close(sp); return INVALID_SERIAL_PORT; } diff --git a/client/src/uart/uart_win32.c b/client/src/uart/uart_win32.c index 699ac4525..cb8b92a73 100644 --- a/client/src/uart/uart_win32.c +++ b/client/src/uart/uart_win32.c @@ -194,7 +194,6 @@ serial_port uart_open(const char *pcPortName, uint32_t speed) { sp->hPort = CreateFileA(acPortName, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL); if (sp->hPort == INVALID_HANDLE_VALUE) { uart_close(sp); - PrintAndLogEx(ERR, "error: invalid handle"); return INVALID_SERIAL_PORT; }