handle missing switch case in events

parent 12178a05
......@@ -535,6 +535,10 @@ void EventManager::ProcessEvent()
case DoorState::TEMP_CLOSE:
TempCloseDoor(event.GetId());
break;
case DoorState::Error:
Log->Write("WARNING:\t Unknown door state in events. open, close or temp_close. Default: open");
OpenDoor(event.GetId());
break;
}
_building->GetRoutingEngine()->setNeedUpdate(true);
}
......@@ -896,4 +900,3 @@ bool EventManager::ReadSchedule()
return true;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment