From 3018b9ffe770209f6a522e2dd886a50eef24bbac Mon Sep 17 00:00:00 2001 From: Max Prokhorov Date: Wed, 27 Feb 2019 17:42:29 +0300 Subject: [PATCH] domoticz: fix always true relay match condition --- code/espurna/domoticz.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/espurna/domoticz.ino b/code/espurna/domoticz.ino index 423c90ee..33fea908 100644 --- a/code/espurna/domoticz.ino +++ b/code/espurna/domoticz.ino @@ -17,7 +17,7 @@ std::vector _dcz_relay_state; // Private methods //------------------------------------------------------------------------------ -unsigned char _domoticzRelay(unsigned int idx) { +int _domoticzRelay(unsigned int idx) { for (unsigned char relayID=0; relayID= 0) { unsigned char value = root["nvalue"]; DEBUG_MSG_P(PSTR("[DOMOTICZ] Received value %u for IDX %u\n"), value, idx);