KNX: Fix Bug when reply sensor values

This commit is contained in:
Adrian Scillato 2018-06-07 23:56:52 -03:00 committed by GitHub
parent b0e979673a
commit 75b01e231c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {