mirror of
https://github.com/esphome/esphome.git
synced 2024-11-29 12:55:46 +01:00
Update log for mics4514 to state 3 minute start time. (#4396)
This commit is contained in:
parent
b5c47b9669
commit
c6742117d3
@ -16,7 +16,7 @@ void MICS4514Component::setup() {
|
|||||||
uint8_t power_mode;
|
uint8_t power_mode;
|
||||||
this->read_register(POWER_MODE_REGISTER, &power_mode, 1);
|
this->read_register(POWER_MODE_REGISTER, &power_mode, 1);
|
||||||
if (power_mode == 0x00) {
|
if (power_mode == 0x00) {
|
||||||
ESP_LOGCONFIG(TAG, "Waking up MICS 4514");
|
ESP_LOGCONFIG(TAG, "Waking up MICS 4514, sensors will have data after 3 minutes...");
|
||||||
power_mode = 0x01;
|
power_mode = 0x01;
|
||||||
this->write_register(POWER_MODE_REGISTER, &power_mode, 1);
|
this->write_register(POWER_MODE_REGISTER, &power_mode, 1);
|
||||||
delay(100); // NOLINT
|
delay(100); // NOLINT
|
||||||
|
Loading…
Reference in New Issue
Block a user