mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 09:17:46 +01:00
Increased debug message precision (#5496)
This commit is contained in:
parent
fa0dcac2c7
commit
ee4ccf2762
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ void UltrasonicSensorComponent::update() {
|
|||
this->publish_state(NAN);
|
||||
} else {
|
||||
float result = UltrasonicSensorComponent::us_to_m(pulse_end - pulse_start);
|
||||
ESP_LOGD(TAG, "'%s' - Got distance: %.2f m", this->name_.c_str(), result);
|
||||
ESP_LOGD(TAG, "'%s' - Got distance: %.3f m", this->name_.c_str(), result);
|
||||
this->publish_state(result);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue