@@ -47,7 +47,7 @@ bool setLightState(bool state, uint8_t brightness, uint16_t temperature_Mireds)
47
47
48
48
if (state) {
49
49
#ifdef RGB_BUILTIN
50
- CtColor_t ct = { temperature_Mireds };
50
+ CtColor_t ct = {temperature_Mireds};
51
51
RgbColor_t rgb_ct = CTToRgb (ct);
52
52
// simple intensity correction
53
53
float brightnessPercent = (float )brightness / MatterColorTemperatureLight::MAX_BRIGHTNESS;
@@ -130,7 +130,10 @@ void setup() {
130
130
// This may be a restart of a already commissioned Matter accessory
131
131
if (Matter.isDeviceCommissioned ()) {
132
132
Serial.println (" Matter Node is commissioned and connected to Wi-Fi. Ready for use." );
133
- Serial.printf (" Initial state: %s | brightness: %d | Color Temperature: %d mireds \r\n " , CW_WW_Light ? " ON" : " OFF" , CW_WW_Light.getBrightness (), CW_WW_Light.getColorTemperature ());
133
+ Serial.printf (
134
+ " Initial state: %s | brightness: %d | Color Temperature: %d mireds \r\n " , CW_WW_Light ? " ON" : " OFF" , CW_WW_Light.getBrightness (),
135
+ CW_WW_Light.getColorTemperature ()
136
+ );
134
137
// configure the Light based on initial on-off state and brightness
135
138
CW_WW_Light.updateAccessory ();
136
139
}
@@ -158,7 +161,10 @@ void loop() {
158
161
Serial.println (" Matter Node not commissioned yet. Waiting for commissioning." );
159
162
}
160
163
}
161
- Serial.printf (" Initial state: %s | brightness: %d | Color Temperature: %d mireds \r\n " , CW_WW_Light ? " ON" : " OFF" , CW_WW_Light.getBrightness (), CW_WW_Light.getColorTemperature ());
164
+ Serial.printf (
165
+ " Initial state: %s | brightness: %d | Color Temperature: %d mireds \r\n " , CW_WW_Light ? " ON" : " OFF" , CW_WW_Light.getBrightness (),
166
+ CW_WW_Light.getColorTemperature ()
167
+ );
162
168
// configure the Light based on initial on-off state and brightness
163
169
CW_WW_Light.updateAccessory ();
164
170
Serial.println (" Matter Node is commissioned and connected to Wi-Fi. Ready for use." );
0 commit comments