Skip to content

Commit

Permalink
Fix for device side log for EnhancedHue attribute under color control…
Browse files Browse the repository at this point in the history
… cluster. (#8723)
  • Loading branch information
sweetymhaiske authored and pull[bot] committed Aug 23, 2021
1 parent 2219043 commit aac2a57
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/app/clusters/color-control-server/color-control-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit aac2a57

Please sign in to comment.