Correct handling of eismultiplexer_connect return code
This commit is contained in:
parent
e87470d14e
commit
316ce6c043
|
@ -39,7 +39,7 @@ void MainWindow::enumerateDevices()
|
||||||
{
|
{
|
||||||
uint16_t serial = serials[i];
|
uint16_t serial = serials[i];
|
||||||
std::shared_ptr<struct eismultiplexer> multiplexer(new struct eismultiplexer);
|
std::shared_ptr<struct eismultiplexer> multiplexer(new struct eismultiplexer);
|
||||||
if (eismultiplexer_connect(multiplexer.get(), serial) >= 0)
|
if (!eismultiplexer_connect(multiplexer.get(), serial))
|
||||||
{
|
{
|
||||||
uint16_t channelCount = 0;
|
uint16_t channelCount = 0;
|
||||||
qDebug()<<"Adding channels from device "<<serial;
|
qDebug()<<"Adding channels from device "<<serial;
|
||||||
|
|
Loading…
Reference in a new issue