This commit is contained in:
Otto Winter 2019-10-18 16:43:37 +02:00
parent 95a74a7f19
commit 1bf55c130b
No known key found for this signature in database
GPG key ID: DB66C0BE6013F97E

View file

@ -463,7 +463,8 @@ LightColorValues LightCall::validate_() {
this->transition_length_.reset(); this->transition_length_.reset();
} }
if (!this->has_transition_() && !this->has_flash_() && (!this->has_effect_() || *this->effect_ == 0) && supports_transition) { if (!this->has_transition_() && !this->has_flash_() && (!this->has_effect_() || *this->effect_ == 0) &&
supports_transition) {
// nothing specified and light supports transitions, set default transition length // nothing specified and light supports transitions, set default transition length
this->transition_length_ = this->parent_->default_transition_length_; this->transition_length_ = this->parent_->default_transition_length_;
} }