mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-25 19:05:39 +08:00
Fix assertion in PseudoTTY
This commit is contained in:
@@ -226,7 +226,6 @@ m_speed(speed),
|
||||
m_assertRTS(assertRTS),
|
||||
m_fd(-1)
|
||||
{
|
||||
assert(!device.empty());
|
||||
}
|
||||
|
||||
CSerialController::~CSerialController()
|
||||
@@ -235,6 +234,7 @@ CSerialController::~CSerialController()
|
||||
|
||||
bool CSerialController::open()
|
||||
{
|
||||
assert(!m_device.empty());
|
||||
assert(m_fd == -1);
|
||||
|
||||
#if defined(__APPLE__)
|
||||
|
||||
Reference in New Issue
Block a user