Use correct file

This commit is contained in:
Geoffrey Merck 2020-06-30 23:19:26 +02:00
parent 4ae141f594
commit 5f0ee739e1

View file

@ -234,6 +234,7 @@ m_speed(speed),
m_assertRTS(assertRTS),
m_fd(-1)
{
assert(!device.empty());
}
CSerialController::CSerialController(unsigned int speed, bool assertRTS) :
@ -250,7 +251,6 @@ CSerialController::~CSerialController()
bool CSerialController::open()
{
assert(!m_device.empty());
assert(m_fd == -1);
#if defined(__APPLE__)