From df0ce33b381862db96f07c1ee32264494fa52d07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Thu, 18 Aug 2022 14:13:20 +0200 Subject: [PATCH] Fix SG ready set state on mode changed --- sgready/integrationpluginsgready.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sgready/integrationpluginsgready.cpp b/sgready/integrationpluginsgready.cpp index 4dc6a92c..384b8037 100644 --- a/sgready/integrationpluginsgready.cpp +++ b/sgready/integrationpluginsgready.cpp @@ -91,8 +91,8 @@ void IntegrationPluginSgReady::setupThing(ThingSetupInfo *info) // Reflect the SG states connect(sgReadyInterface, &SgReadyInterface::sgReadyModeChanged, this, [thing, sgReadyInterface](SgReadyInterface::SgReadyMode mode){ Q_UNUSED(mode) - thing->setSettingValue(sgReadyInterfaceGpio1StateStateTypeId, sgReadyInterface->gpio1()->value() == Gpio::ValueHigh); - thing->setSettingValue(sgReadyInterfaceGpio2StateStateTypeId, sgReadyInterface->gpio2()->value() == Gpio::ValueHigh); + thing->setStateValue(sgReadyInterfaceGpio1StateStateTypeId, sgReadyInterface->gpio1()->value() == Gpio::ValueHigh); + thing->setStateValue(sgReadyInterfaceGpio2StateStateTypeId, sgReadyInterface->gpio2()->value() == Gpio::ValueHigh); }); m_sgReadyInterfaces.insert(thing, sgReadyInterface);