Update esphome/components/lps22/lps22.cpp

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Simonas Kazlauskas 2024-10-15 17:08:11 +03:00 committed by GitHub
parent 0b962f32db
commit 125a27a158
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,7 +23,13 @@ static constexpr float TEMPERATURE_SCALE = 0.01;
void LPS22Component::setup() {}
void LPS22Component::dump_config() { LOG_I2C_DEVICE(this); }
void LPS22Component::dump_config() {
ESP_LOGCONFIG(TAG, "LPS22:");
LOG_SENSOR(" ", "Temperature", this->temperature_sensor_);
LOG_SENSOR(" ", "Pressure", this->pressure_sensor_);
LOG_I2C_DEVICE(this);
LOG_UPDATE_INTERVAL(this);
}
void LPS22Component::update() {
uint8_t value = 0x00;