1
0
mirror of https://github.com/esphome/esphome.git synced 2026-02-08 00:31:58 +00:00

[vl53l0x] Combine log statements to reduce loop blocking (#12929)

This commit is contained in:
J. Nick Koston
2026-01-04 12:53:46 -10:00
committed by GitHub
parent 71940acc49
commit 25ef9aff04

View File

@@ -27,8 +27,10 @@ void VL53L0XSensor::dump_config() {
if (this->enable_pin_ != nullptr) {
LOG_PIN(" Enable Pin: ", this->enable_pin_);
}
ESP_LOGCONFIG(TAG, " Timeout: %u%s", this->timeout_us_, this->timeout_us_ > 0 ? "us" : " (no timeout)");
ESP_LOGCONFIG(TAG, " Timing Budget %uus ", this->measurement_timing_budget_us_);
ESP_LOGCONFIG(TAG,
" Timeout: %u%s\n"
" Timing Budget %uus ",
this->timeout_us_, this->timeout_us_ > 0 ? "us" : " (no timeout)", this->measurement_timing_budget_us_);
}
void VL53L0XSensor::setup() {