mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 11:47:30 +01:00
light: fix compile with ESP-IDF >= 5 (#4855)
This commit is contained in:
parent
3ead48f0db
commit
f9f335e692
@ -1,3 +1,4 @@
|
||||
#include <cinttypes>
|
||||
#include "light_call.h"
|
||||
#include "light_state.h"
|
||||
#include "esphome/core/log.h"
|
||||
@ -283,7 +284,7 @@ LightColorValues LightCall::validate_() {
|
||||
|
||||
// validate effect index
|
||||
if (this->has_effect_() && *this->effect_ > this->parent_->effects_.size()) {
|
||||
ESP_LOGW(TAG, "'%s' - Invalid effect index %u!", name, *this->effect_);
|
||||
ESP_LOGW(TAG, "'%s' - Invalid effect index %" PRIu32 "!", name, *this->effect_);
|
||||
this->effect_.reset();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user