From 75b01e231c11576fdc5b43f1ffe818c982e9e011 Mon Sep 17 00:00:00 2001 From: Adrian Scillato <35405447+ascillato@users.noreply.github.com> Date: Thu, 7 Jun 2018 23:56:52 -0300 Subject: [PATCH] KNX: Fix Bug when reply sensor values --- sonoff/xdrv_11_knx.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonoff/xdrv_11_knx.ino b/sonoff/xdrv_11_knx.ino index eef88e001..50c71c625 100644 --- a/sonoff/xdrv_11_knx.ino +++ b/sonoff/xdrv_11_knx.ino @@ -566,7 +566,7 @@ void KNX_CB_Action(message_t const &msg, void *arg) knx.answer_1bit(msg.received_on, chan->last_state); } } - else if (chan->type = KNX_TEMPERATURE) // Reply Temperature + else if (chan->type == KNX_TEMPERATURE) // Reply Temperature { knx.answer_2byte_float(msg.received_on, last_temp); if (Settings.flag.knx_enable_enhancement) { @@ -574,7 +574,7 @@ void KNX_CB_Action(message_t const &msg, void *arg) knx.answer_2byte_float(msg.received_on, last_temp); } } - else if (chan->type = KNX_HUMIDITY) // Reply Humidity + else if (chan->type == KNX_HUMIDITY) // Reply Humidity { knx.answer_2byte_float(msg.received_on, last_hum); if (Settings.flag.knx_enable_enhancement) {