From abde688b324aa02712f711a3adfb4c513217e26d Mon Sep 17 00:00:00 2001 From: Shi Xin Ke Date: Thu, 29 Aug 2024 12:31:58 +0800 Subject: [PATCH] fix(lightbulb): Delete some conditional judgments and allow external input mix table --- components/led/lightbulb_driver/CHANGELOG.md | 7 +++++++ components/led/lightbulb_driver/idf_component.yml | 2 +- components/led/lightbulb_driver/src/lightbulb.c | 2 -- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/components/led/lightbulb_driver/CHANGELOG.md b/components/led/lightbulb_driver/CHANGELOG.md index 19cd9240c..4eb5e0cba 100644 --- a/components/led/lightbulb_driver/CHANGELOG.md +++ b/components/led/lightbulb_driver/CHANGELOG.md @@ -1,4 +1,11 @@ # ChangeLog + +## v1.3.1 - 2024-08-28 + +### Bug Fixes: + +* Delete some conditional judgments and allow external input mix table + ## v1.3.0 - 2024-06-05 ### Enhancements: diff --git a/components/led/lightbulb_driver/idf_component.yml b/components/led/lightbulb_driver/idf_component.yml index ee87b0ac2..3adbf0317 100644 --- a/components/led/lightbulb_driver/idf_component.yml +++ b/components/led/lightbulb_driver/idf_component.yml @@ -1,4 +1,4 @@ -version: "1.3.0" +version: "1.3.1" description: Provide multiple dimming driver solutions to easily build lightbulb applications url: https://github.com/espressif/esp-iot-solution/tree/master/components/led/lightbulb_driver dependencies: diff --git a/components/led/lightbulb_driver/src/lightbulb.c b/components/led/lightbulb_driver/src/lightbulb.c index eca1bd520..5e9f95d1f 100644 --- a/components/led/lightbulb_driver/src/lightbulb.c +++ b/components/led/lightbulb_driver/src/lightbulb.c @@ -779,8 +779,6 @@ esp_err_t lightbulb_init(lightbulb_config_t *config) // Check cct output mode if (IS_WHITE_CHANNEL_SELECTED()) { if (s_lb_obj->cap.enable_precise_cct_control) { - LIGHTBULB_CHECK(config->cct_mix_mode.precise.table_size > 0, "mix table size error", goto EXIT); - s_lb_obj->cct_manager.table_size = config->cct_mix_mode.precise.table_size; s_lb_obj->cct_manager.kelvin_to_percentage = precise_kelvin_convert_to_percentage; s_lb_obj->cct_manager.percentage_to_kelvin = precise_percentage_convert_to_kelvin;