From 5f0ee739e134772b0b1e0201a23a9dbc3e67a266 Mon Sep 17 00:00:00 2001 From: Geoffrey Merck Date: Tue, 30 Jun 2020 23:19:26 +0200 Subject: [PATCH] Use correct file --- SerialController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SerialController.cpp b/SerialController.cpp index 6352743..99fe576 100644 --- a/SerialController.cpp +++ b/SerialController.cpp @@ -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__)