From 1bb2589e430c1fd11312e19d2eec003e580fb4e8 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Mon, 22 Jul 2024 19:17:12 +0200 Subject: [PATCH] Berry fix `light.get` for separate RGB/CT --- 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 9ab12db37463..a2fbf3f1d3e0 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 b268dba3dce8..11bec6baa1d9 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);