From 316ce6c043df90d18f8313cf9ef9e7420722e4a8 Mon Sep 17 00:00:00 2001 From: Carl Philipp Klemm Date: Mon, 25 Aug 2025 17:50:18 +0200 Subject: [PATCH] Correct handling of eismultiplexer_connect return code --- mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 99a5739..a41892a 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -39,7 +39,7 @@ void MainWindow::enumerateDevices() { uint16_t serial = serials[i]; std::shared_ptr multiplexer(new struct eismultiplexer); - if (eismultiplexer_connect(multiplexer.get(), serial) >= 0) + if (!eismultiplexer_connect(multiplexer.get(), serial)) { uint16_t channelCount = 0; qDebug()<<"Adding channels from device "<