A system and method for controlling a safety system