mirror of
https://github.com/esphome/esphome.git
synced 2026-10-01 00:40:21 +00:00
[key_collector][mipi_rgb] Suppress compilation warnings (#18721)
This commit is contained in:
@@ -14,6 +14,7 @@ void KeyCollector::loop() {
|
||||
}
|
||||
|
||||
void KeyCollector::dump_config() {
|
||||
#if ESPHOME_LOG_LEVEL >= ESPHOME_LOG_LEVEL_CONFIG
|
||||
ESP_LOGCONFIG(TAG, "Key Collector:");
|
||||
if (this->min_length_ > 0)
|
||||
ESP_LOGCONFIG(TAG, " min length: %d", this->min_length_);
|
||||
@@ -35,6 +36,7 @@ void KeyCollector::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, " allowed keys '%s'", this->allowed_keys_.c_str());
|
||||
if (this->timeout_ > 0)
|
||||
ESP_LOGCONFIG(TAG, " entry timeout: %0.1f", this->timeout_ / 1000.0);
|
||||
#endif
|
||||
}
|
||||
|
||||
void KeyCollector::add_provider(key_provider::KeyProvider *provider) {
|
||||
|
||||
@@ -345,7 +345,7 @@ int MipiRgb::get_height() {
|
||||
}
|
||||
}
|
||||
|
||||
static const char *get_pin_name(GPIOPin *pin, std::span<char, GPIO_SUMMARY_MAX_LEN> buffer) {
|
||||
[[maybe_unused]] static const char *get_pin_name(GPIOPin *pin, std::span<char, GPIO_SUMMARY_MAX_LEN> buffer) {
|
||||
if (pin == nullptr)
|
||||
return "None";
|
||||
pin->dump_summary(buffer.data(), buffer.size());
|
||||
|
||||
Reference in New Issue
Block a user