From b8ae64606061e593c573d94c70de18e99ce2a00a Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 16 Apr 2024 13:53:35 +0200 Subject: [PATCH 1/2] this include might be missing --- src/fsfw_hal/linux/serial/helper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fsfw_hal/linux/serial/helper.cpp b/src/fsfw_hal/linux/serial/helper.cpp index c58689c0..9bded3fa 100644 --- a/src/fsfw_hal/linux/serial/helper.cpp +++ b/src/fsfw_hal/linux/serial/helper.cpp @@ -1,6 +1,6 @@ #include #include - +#include "FSFWConfig.h" #include "fsfw/serviceinterface.h" void serial::setMode(struct termios& options, UartModes mode) { From fb2e480705368f2ece8458d40162d23b31c26268 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 16 Apr 2024 13:58:10 +0200 Subject: [PATCH 2/2] did i forgot to push? --- src/fsfw_hal/linux/serial/helper.cpp | 4 ++++ src/fsfw_hal/linux/serial/helper.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/fsfw_hal/linux/serial/helper.cpp b/src/fsfw_hal/linux/serial/helper.cpp index 9bded3fa..6cf86d95 100644 --- a/src/fsfw_hal/linux/serial/helper.cpp +++ b/src/fsfw_hal/linux/serial/helper.cpp @@ -1,5 +1,7 @@ #include #include +#include + #include "FSFWConfig.h" #include "fsfw/serviceinterface.h" @@ -164,4 +166,6 @@ void serial::setStopbits(struct termios& options, StopBits bits) { void serial::flushRxBuf(int fd) { tcflush(fd, TCIFLUSH); } +void serial::flushTxBuf(int fd) { tcflush(fd, TCOFLUSH); } + void serial::flushTxRxBuf(int fd) { tcflush(fd, TCIOFLUSH); } diff --git a/src/fsfw_hal/linux/serial/helper.h b/src/fsfw_hal/linux/serial/helper.h index 623612ad..6b93ae91 100644 --- a/src/fsfw_hal/linux/serial/helper.h +++ b/src/fsfw_hal/linux/serial/helper.h @@ -65,6 +65,7 @@ void setParity(struct termios& options, Parity parity); void ignoreCtrlLines(struct termios& options); void flushRxBuf(int fd); +void flushTxBuf(int fd); void flushTxRxBuf(int fd); int readCountersAndErrors(int serialPort, serial_icounter_struct& icounter);