@@ -47,7 +47,7 @@ bool setLightState(bool state, uint8_t brightness, uint16_t temperature_Mireds)
4747
4848 if (state) {
4949#ifdef RGB_BUILTIN
50- CtColor_t ct = { temperature_Mireds };
50+ CtColor_t ct = {temperature_Mireds};
5151 RgbColor_t rgb_ct = CTToRgb (ct);
5252 // simple intensity correction
5353 float brightnessPercent = (float )brightness / MatterColorTemperatureLight::MAX_BRIGHTNESS;
@@ -130,7 +130,10 @@ void setup() {
130130 // This may be a restart of a already commissioned Matter accessory
131131 if (Matter.isDeviceCommissioned ()) {
132132 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+ );
134137 // configure the Light based on initial on-off state and brightness
135138 CW_WW_Light.updateAccessory ();
136139 }
@@ -158,7 +161,10 @@ void loop() {
158161 Serial.println (" Matter Node not commissioned yet. Waiting for commissioning." );
159162 }
160163 }
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+ );
162168 // configure the Light based on initial on-off state and brightness
163169 CW_WW_Light.updateAccessory ();
164170 Serial.println (" Matter Node is commissioned and connected to Wi-Fi. Ready for use." );
0 commit comments