Ignore replies in shutdown mode #114

Closed
muellerr wants to merge 1 commits from mueller/dhb_ignore_replies_in_shutdown_mode into develop

View File

@ -862,7 +862,8 @@ void DeviceHandlerBase::handleReply(const uint8_t* receivedData, DeviceCommandId
/* Other completion failure messages are created by timeout.
Powering down the device might take some time during which periodic
replies may still come in. */
if (mode != _MODE_WAIT_OFF) {
if (mode != _MODE_WAIT_OFF and mode != _MODE_SHUT_DOWN and mode != _MODE_POWER_DOWN and
mode != _MODE_SWITCH_IS_OFF) {
triggerEvent(DEVICE_UNREQUESTED_REPLY, foundId);
}
}