Optimize application loop speed (#860)

* Optimize application loop speed

* Also check call_loop

* Remove duplicate code

* Fixes
This commit is contained in:
Otto Winter
2019-12-04 16:03:37 +01:00
committed by GitHub
parent e86f2e993f
commit e9e92afc9e
5 changed files with 24 additions and 3 deletions
-2
View File
@@ -416,8 +416,6 @@ LightColorValues LightCall::validate_() {
if (this->brightness_.has_value())
v.set_brightness(*this->brightness_);
if (this->brightness_.has_value())
v.set_brightness(*this->brightness_);
if (this->red_.has_value())
v.set_red(*this->red_);
if (this->green_.has_value())