1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-15 01:32:19 +01:00
This commit is contained in:
J. Nick Koston
2025-06-13 10:11:38 -05:00
parent bc6b72a422
commit 82518b351d
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
} }

View File

@@ -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());
} }
} }