1
0
mirror of synced 2026-04-09 22:18:43 +00:00

Some small fixes to the console code. Mostly about correctness...

This commit is contained in:
Andras Tantos
2021-08-22 09:31:42 -07:00
parent d6965185ee
commit 59e8935a90
2 changed files with 5 additions and 1 deletions

View File

@@ -69,6 +69,10 @@ Console_c::Console_c(const Configuration_c &aConfig, CLogger_c &aLogger, uint16_
mLogFileName = aConfig.get<std::string>("LogFile", "");
}
Console_c::~Console_c() {
Flush();
}
bool Console_c::HasInput() const { return mReceiveFull; }
char Console_c::GetChar() {

View File

@@ -82,7 +82,7 @@ enum class TelnetOptions_e : uint8_t {
class Console_c {
public:
Console_c(const Configuration_c &aConfig, CLogger_c &aLogger, uint16_t aPort, bool aAutoPort, bool aDisableAutoTerminal);
virtual ~Console_c() {}
virtual ~Console_c();
bool HasInput() const;
char GetChar();
void SendString(std::string &aData);