diff --git a/hardware/RF.cpp b/hardware/RF.cpp index fd473f0..b14ddd9 100644 --- a/hardware/RF.cpp +++ b/hardware/RF.cpp @@ -10,7 +10,7 @@ #include #include #include - +#include #include "RF.hpp" @@ -150,6 +150,8 @@ RF::Command RF::GetCommand() // Will check for commands and return the received std::string input_line(buffer); + + tcflush(SerialFd, TCIFLUSH); std::cout << "String:" << input_line << "\n" << std::flush;