mirror of
https://github.com/esphome/esphome.git
synced 2024-12-11 14:49:20 +01:00
fix
This commit is contained in:
parent
f58bb249c4
commit
a59610b96d
@ -177,7 +177,7 @@ void AS7343Component::update() {
|
||||
if (this->is_ready() && this->state_ == State::IDLE) {
|
||||
ESP_LOGV(TAG, "Update: Initiating new data collection");
|
||||
|
||||
// this->enable_spectral_measurement(true);
|
||||
this->enable_spectral_measurement(true);
|
||||
|
||||
this->readings_.millis_start = millis();
|
||||
this->state_ = State::COLLECTING_DATA;
|
||||
@ -196,6 +196,7 @@ void AS7343Component::loop() {
|
||||
case State::COLLECTING_DATA:
|
||||
if (this->is_data_ready()) {
|
||||
this->read_all_channels();
|
||||
this->enable_spectral_measurement(false);
|
||||
|
||||
log13_s(TAG, "Channel", CHANNEL_NAMES);
|
||||
log13_f(TAG, "Nm", CHANNEL_NM);
|
||||
|
Loading…
Reference in New Issue
Block a user