From a59610b96d59d2bcb6528df50c9595fb8bd4d135 Mon Sep 17 00:00:00 2001 From: Anton Viktorov Date: Fri, 15 Mar 2024 12:41:18 +0100 Subject: [PATCH] fix --- esphome/components/as7343/as7343.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/esphome/components/as7343/as7343.cpp b/esphome/components/as7343/as7343.cpp index b636d47ae7..851851504e 100644 --- a/esphome/components/as7343/as7343.cpp +++ b/esphome/components/as7343/as7343.cpp @@ -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,7 +196,8 @@ 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); log13_d(TAG, "Counts", this->readings_.raw_counts);