mirror of
https://github.com/esphome/esphome.git
synced 2024-11-30 18:54:14 +01:00
Update esphome/components/lps22/lps22.cpp
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
0b962f32db
commit
125a27a158
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue