mirror of
https://github.com/esphome/esphome.git
synced 2024-11-02 08:40:55 +01:00
Format
This commit is contained in:
parent
16bc60644d
commit
62d4b29662
@ -113,8 +113,7 @@ void SCD30Component::update() {
|
|||||||
uint32_t temp_hum_u32 = (((uint32_t(raw_data[4])) << 16) | (uint32_t(raw_data[5])));
|
uint32_t temp_hum_u32 = (((uint32_t(raw_data[4])) << 16) | (uint32_t(raw_data[5])));
|
||||||
uint32_float_t humidity{.uint32 = temp_hum_u32};
|
uint32_float_t humidity{.uint32 = temp_hum_u32};
|
||||||
|
|
||||||
ESP_LOGD(TAG, "Got CO2=%.2fppm temperature=%.2f°C humidity=%.2f%%",
|
ESP_LOGD(TAG, "Got CO2=%.2fppm temperature=%.2f°C humidity=%.2f%%", co2.value, temperature.value, humidity.value);
|
||||||
co2.value, temperature.value, humidity.value);
|
|
||||||
if (this->co2_sensor_ != nullptr)
|
if (this->co2_sensor_ != nullptr)
|
||||||
this->co2_sensor_->publish_state(co2.value);
|
this->co2_sensor_->publish_state(co2.value);
|
||||||
if (this->temperature_sensor_ != nullptr)
|
if (this->temperature_sensor_ != nullptr)
|
||||||
|
Loading…
Reference in New Issue
Block a user