Ignore replies in shutdown mode #114
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user