File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ void Light::Render()
157
157
const char * mode = // based on ColorMode attribute: spec 3.2.7.9
158
158
(mColorMode == chip::app::Clusters::ColorControl::ColorModeEnum::kCurrentHueAndCurrentSaturation ) ? " Hue/Saturation"
159
159
: (mColorMode == chip::app::Clusters::ColorControl::ColorModeEnum::kCurrentXAndCurrentY ) ? " X/Y"
160
- : (mColorMode == chip::app::Clusters::ColorControl::ColorModeEnum::kColorTemperature ) ? " Temperature/Mireds"
160
+ : (mColorMode == chip::app::Clusters::ColorControl::ColorModeEnum::kColorTemperatureMireds ) ? " Temperature/Mireds"
161
161
: " UNKNOWN" ;
162
162
163
163
ImGui::Text (" Mode: %s" , mode);
@@ -178,7 +178,7 @@ void Light::Render()
178
178
ImGui::Text (" Current X: %d" , mColorX );
179
179
ImGui::Text (" Current Y: %d" , mColorY );
180
180
}
181
- else if (mColorMode == chip::app::Clusters::ColorControl::ColorModeEnum::kColorTemperature )
181
+ else if (mColorMode == chip::app::Clusters::ColorControl::ColorModeEnum::kColorTemperatureMireds )
182
182
{
183
183
ImGui::Text (" Color Temperature Mireds: %d" , mColorTemperatureMireds );
184
184
}
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ void MatterPostAttributeChangeCallback(const chip::app::ConcreteAttributePath &
123
123
void emberAfColorControlClusterInitCallback (EndpointId endpoint)
124
124
{
125
125
// Set the color mode to color temperature.
126
- Clusters::ColorControl::Attributes::ColorMode::Set (endpoint, Clusters::ColorControl::ColorModeEnum::kColorTemperature );
126
+ Clusters::ColorControl::Attributes::ColorMode::Set (endpoint, Clusters::ColorControl::ColorModeEnum::kColorTemperatureMireds );
127
127
// Preserve the state of the color temperature attribute across reboots.
128
128
Clusters::ColorControl::Attributes::StartUpColorTemperatureMireds::SetNull (endpoint);
129
129
}
You can’t perform that action at this time.
0 commit comments