From f849dc4111048496e2ab681597a3e06d31ad49f1 Mon Sep 17 00:00:00 2001 From: m-kozlowski <10508687+m-kozlowski@users.noreply.github.com> Date: Tue, 11 Aug 2020 14:32:37 +0200 Subject: [PATCH] domoticz: fix idx truncation when reading from settings (#2316) Co-authored-by: mkozlowski --- code/espurna/domoticz.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/espurna/domoticz.cpp b/code/espurna/domoticz.cpp index b6a179eb..69dc2d2a 100644 --- a/code/espurna/domoticz.cpp +++ b/code/espurna/domoticz.cpp @@ -25,7 +25,7 @@ std::bitset _dcz_relay_state; // Private methods //------------------------------------------------------------------------------ -unsigned char _domoticzIdx(unsigned char relayID, unsigned char defaultValue = 0) { +unsigned int _domoticzIdx(unsigned char relayID, unsigned int defaultValue = 0) { return getSetting({"dczRelayIdx", relayID}, defaultValue); }