diff --git a/PseudoTTYController.cpp b/PseudoTTYController.cpp index 67df4a4..52a4ac9 100644 --- a/PseudoTTYController.cpp +++ b/PseudoTTYController.cpp @@ -37,7 +37,7 @@ CPseudoTTYController::CPseudoTTYController(const std::string& symlink, unsigned int speed, bool assertRTS) : -CSerialController("", speed, assertRTS), +CSerialController(speed, assertRTS), m_symlink(symlink) { } diff --git a/SerialController.cpp b/SerialController.cpp index 10c634a..99fe576 100644 --- a/SerialController.cpp +++ b/SerialController.cpp @@ -48,6 +48,14 @@ m_handle(INVALID_HANDLE_VALUE) assert(!device.empty()); } +CSerialController::CSerialController(unsigned int speed, bool assertRTS) : +m_device(), +m_speed(speed), +m_assertRTS(assertRTS), +m_handle(INVALID_HANDLE_VALUE) +{ +} + CSerialController::~CSerialController() { } @@ -229,6 +237,14 @@ m_fd(-1) assert(!device.empty()); } +CSerialController::CSerialController(unsigned int speed, bool assertRTS) : +m_device(), +m_speed(speed), +m_assertRTS(assertRTS), +m_fd(-1) +{ +} + CSerialController::~CSerialController() { } diff --git a/SerialController.h b/SerialController.h index d4cb519..e4adb7d 100644 --- a/SerialController.h +++ b/SerialController.h @@ -46,6 +46,8 @@ public: #endif protected: + CSerialController(unsigned int speed, bool assertRTS = false); + std::string m_device; unsigned int m_speed; bool m_assertRTS; diff --git a/Version.h b/Version.h index dc5e793..d3f9fbf 100644 --- a/Version.h +++ b/Version.h @@ -19,6 +19,6 @@ #if !defined(VERSION_H) #define VERSION_H -const char* VERSION = "20200627"; +const char* VERSION = "20200628"; #endif