Skip to content
Snippets Groups Projects
Verified Commit 971cfa1e authored by Mohcine Chraibi's avatar Mohcine Chraibi
Browse files

handle missing switch case in events

parent 12178a05
Branches
No related tags found
No related merge requests found
......@@ -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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment