tmp fdir bugfix: use strange reply counter

This commit is contained in:
Robin Müller 2023-06-18 16:34:07 +02:00
parent ecb8de1550
commit 322151acf8
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -29,7 +29,9 @@ ReturnValue_t TmpDevFdir::eventReceived(EventMessage* event) {
case DeviceHandlerIF::DEVICE_BUILDING_COMMAND_FAILED:
// These faults all mean that there were stupid replies from a device.
// With now way to do a recovery, set the device to faulty immediately.
if (strangeReplyCount.incrementAndCheck()) {
setFaulty(event->getEvent());
}
break;
case DeviceHandlerIF::DEVICE_SENDING_COMMAND_FAILED:
case DeviceHandlerIF::DEVICE_REQUESTING_REPLY_FAILED: