mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-25 07:08:30 +02:00
Avoid non-const globals and enable clang-tidy check (#1892)
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
namespace esphome {
|
||||
namespace output {
|
||||
|
||||
static const char *TAG = "output.float";
|
||||
static const char *const TAG = "output.float";
|
||||
|
||||
void FloatOutput::set_max_power(float max_power) {
|
||||
this->max_power_ = clamp(max_power, this->min_power_, 1.0f); // Clamp to MIN>=MAX>=1.0
|
||||
|
||||
Reference in New Issue
Block a user