From aac2a573228af8ba3a83410c4263524a71117b84 Mon Sep 17 00:00:00 2001 From: Sweety Date: Fri, 30 Jul 2021 23:56:54 +0530 Subject: [PATCH] Fix for device side log for EnhancedHue attribute under color control cluster. (#8723) --- .../color-control-server/color-control-server.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/app/clusters/color-control-server/color-control-server.cpp b/src/app/clusters/color-control-server/color-control-server.cpp index e9fd11fe547be5..56f6d6571db4b7 100644 --- a/src/app/clusters/color-control-server/color-control-server.cpp +++ b/src/app/clusters/color-control-server/color-control-server.cpp @@ -1782,10 +1782,16 @@ void emberAfPluginColorControlServerHueSatTransitionEventHandler(void) } writeSaturation(colorSaturationTransitionState.endpoint, (uint8_t) colorSaturationTransitionState.currentValue); - - emberAfColorControlClusterPrintln("Hue %d Saturation %d endpoint %d", colorHueTransitionState.currentHue, - colorSaturationTransitionState.currentValue, endpoint); - + if (colorHueTransitionState.isEnhancedHue) + { + emberAfColorControlClusterPrintln("Enhanced Hue %d Saturation %d endpoint %d", colorHueTransitionState.currentEnhancedHue, + colorSaturationTransitionState.currentValue, endpoint); + } + else + { + emberAfColorControlClusterPrintln("Hue %d Saturation %d endpoint %d", colorHueTransitionState.currentHue, + colorSaturationTransitionState.currentValue, endpoint); + } emberAfPluginColorControlServerComputePwmFromHsvCallback(endpoint); }