mirror of
https://github.com/esphome/esphome.git
synced 2025-09-15 01:32:19 +01:00
lint
This commit is contained in:
@@ -47,7 +47,7 @@ bool ESP32TouchComponent::create_touch_queue_() {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (this->touch_queue_ == nullptr) {
|
if (this->touch_queue_ == nullptr) {
|
||||||
ESP_LOGE(TAG, "Failed to create touch event queue of size %d", queue_size);
|
ESP_LOGE(TAG, "Failed to create touch event queue of size %" PRIu32, (uint32_t) queue_size);
|
||||||
this->mark_failed();
|
this->mark_failed();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -18,7 +18,7 @@ void ESP32TouchComponent::update_touch_state_(ESP32TouchBinarySensor *child, boo
|
|||||||
|
|
||||||
child->last_state_ = is_touched;
|
child->last_state_ = is_touched;
|
||||||
child->publish_state(is_touched);
|
child->publish_state(is_touched);
|
||||||
ESP_LOGD(TAG, "Touch Pad '%s' %s (value: %d %s threshold: %d)", child->get_name().c_str(),
|
ESP_LOGD(TAG, "Touch Pad '%s' %s (value: %" PRIu32 " %s threshold: %" PRIu32 ")", child->get_name().c_str(),
|
||||||
is_touched ? "touched" : "released", value, is_touched ? ">" : "<=", child->get_threshold());
|
is_touched ? "touched" : "released", value, is_touched ? ">" : "<=", child->get_threshold());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user