resolved some todos

This commit is contained in:
Johannes Wendel
2019-10-29 14:27:13 +01:00
parent e5c8e6affc
commit 09469b3de9
6 changed files with 19 additions and 8 deletions

View File

@@ -56,12 +56,11 @@ void OutputDriver::activate_all_lamps() const
void OutputDriver::rotate_all_lamps() const
{
for(const auto & lamp : lamps)
for(const auto & lamp : this->lamps)
{
lamp.second->activate();
// ToDo sleep time + is this thread safe??
// TODO: time should be parameter
std::this_thread::sleep_for(std::chrono::milliseconds(10));
// ToDo is this thread safe??
std::this_thread::sleep_for(lamp.second->get_activation_time());
lamp.second->deactivate();
}
}