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);