mirror of
https://github.com/esphome/esphome.git
synced 2024-12-04 20:48:21 +01:00
MAX6921: fix log output
This commit is contained in:
parent
fc90baf380
commit
9e0b86f3fd
1 changed files with 1 additions and 2 deletions
|
@ -270,8 +270,7 @@ void MAX6921Component::dump_config() {
|
|||
|
||||
void MAX6921Component::set_intensity(uint8_t intensity) {
|
||||
if (intensity > MAX_DISPLAY_INTENSITY) {
|
||||
ESP_LOGW(TAG, "Invalid intensity: %u (0..%u)",
|
||||
this->display_.intensity.config_value, MAX_DISPLAY_INTENSITY);
|
||||
ESP_LOGW(TAG, "Invalid intensity: %u (0..%u)", intensity, MAX_DISPLAY_INTENSITY);
|
||||
intensity = MAX_DISPLAY_INTENSITY;
|
||||
}
|
||||
if ((intensity == 0) || (intensity != this->display_.intensity.config_value)) {
|
||||
|
|
Loading…
Reference in a new issue