From c27132b488ed3853127aa43c581a2ff6b43c2143 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Tue, 14 Jan 2020 19:45:28 +0100 Subject: [PATCH] EQ-3: Fix Max! Cube device setup Fixes: #210 --- eq-3/deviceplugineq-3.cpp | 2 +- eq-3/maxcubediscovery.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/eq-3/deviceplugineq-3.cpp b/eq-3/deviceplugineq-3.cpp index 26ab4906..65785240 100644 --- a/eq-3/deviceplugineq-3.cpp +++ b/eq-3/deviceplugineq-3.cpp @@ -441,7 +441,7 @@ void DevicePluginEQ3::radiatorThermostatFound() } if(!descriptorList.isEmpty()){ - metaObject()->invokeMethod(this, "autoDevicesAppeared", Qt::QueuedConnection, Q_ARG(DeviceClassId, radiatorThermostateDeviceClassId), Q_ARG(QList, descriptorList)); + emit autoDevicesAppeared(descriptorList); } } diff --git a/eq-3/maxcubediscovery.cpp b/eq-3/maxcubediscovery.cpp index 6180bbd9..6ca57353 100644 --- a/eq-3/maxcubediscovery.cpp +++ b/eq-3/maxcubediscovery.cpp @@ -61,6 +61,7 @@ void MaxCubeDiscovery::readData() if(!data.isEmpty() && data.contains("eQ3MaxAp")){ CubeInfo cube; + cube.hostAddress = sender; cube.serialNumber = data.mid(8,10); cube.rfAddress = data.mid(21,3).toHex(); cube.firmware = data.mid(24,2).toHex().toInt();