From e085cfd3ab588fd6de4a127090644b52bb440307 Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Mon, 22 Jul 2024 20:38:14 +0200 Subject: [PATCH] Berry fix `light.get` for separate RGB/CT (#21818) --- CHANGELOG.md | 1 + tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_light.ino | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ab12db37..a2fbf3f1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file. ### Changed ### Fixed +- Berry fix `light.get` for separate RGB/CT ### Removed diff --git a/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_light.ino b/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_light.ino index b268dba3d..11bec6baa 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_light.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_light.ino @@ -130,7 +130,7 @@ extern "C" { int32_t top = be_top(vm); // Get the number of arguments if (top == 0 || (top == 1 && be_isint(vm, 1))) { int32_t light_num = 0; - if (top > 1) { + if (top > 0) { light_num = be_toint(vm, 1); } push_getlight(vm, light_num);