1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-13 22:28:14 +00:00
This commit is contained in:
Nikolay Vasilchuk 2019-08-07 12:19:17 +03:00
parent 6e38a2a991
commit d1dc898320

View File

@ -62,17 +62,17 @@ void MHZ19Component::update() {
}
void MHZ19Component::calibrate_zero() {
ESP_LOGI(TAG, "MHZ19 Calibrating zero point");
ESP_LOGD(TAG, "MHZ19 Calibrating zero point");
this->mhz19_write_command_(MHZ19_COMMAND_CALIBRATE_ZERO, nullptr);
}
void MHZ19Component::abc_enable() {
ESP_LOGI(TAG, "MHZ19 Enabling ABC");
ESP_LOGD(TAG, "MHZ19 Enabling automatic baseline calibration");
this->mhz19_write_command_(MHZ19_COMMAND_ABC_ENABLE, nullptr);
}
void MHZ19Component::abc_disable() {
ESP_LOGI(TAG, "MHZ19 Disabling ABC");
ESP_LOGD(TAG, "MHZ19 Disabling automatic baseline calibration");
this->mhz19_write_command_(MHZ19_COMMAND_ABC_DISABLE, nullptr);
}