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

This commit is contained in:
Keith Burzinski
2024-11-26 10:59:29 +01:00
committed by GitHub
parent 6b59f55a50
commit 31c13e4c16
+1 -1
View File
@@ -32,7 +32,7 @@ void FloatOutput::set_level(float state) {
}
#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_;
if (this->is_inverted())