Adds shutdown to ouput driver

This commit is contained in:
Johannes Wendel
2020-01-06 15:12:26 +01:00
parent 9f1420d846
commit bfcc5b86ea
3 changed files with 11 additions and 2 deletions

View File

@@ -153,6 +153,13 @@ boost::optional<std::shared_ptr<items::Display>> OutputDriver::get_display(uint8
return this->displays.find(num)->second;
}
void OutputDriver::shut_down_driver() const
{
this->deactivate_all_flipper_relays();
this->deactivate_all_lamps();
this->deactivate_displays();
}
}
} /* namespace output */