[output] clang-tidy fixes for #7822 (#7854)

This commit is contained in:
Keith Burzinski 2024-11-26 03:59:29 -06:00 committed by GitHub
parent 6b59f55a50
commit 31c13e4c16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,7 +32,7 @@ void FloatOutput::set_level(float state) {
} }
#endif #endif
if (!(state == 0.0f && this->zero_means_zero_)) // regardless of min_power_, 0.0 means off if (state != 0.0f || !this->zero_means_zero_) // regardless of min_power_, 0.0 means off
state = (state * (this->max_power_ - this->min_power_)) + this->min_power_; state = (state * (this->max_power_ - this->min_power_)) + this->min_power_;
if (this->is_inverted()) if (this->is_inverted())