Skip to content

Commit 3edb261

Browse files
authored
fixed the bug (#2043)
1 parent 6a04d82 commit 3edb261

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/cmnds/cmd_newLEDDriver.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,7 @@ void LED_I2CDriver_WriteRGBCW(float* finalRGBCW) {
262262
// the format is RGBCW
263263
// Emulate C with RGB
264264
LED_CalculateEmulatedCool(finalRGBCW[3], finalRGBCW);
265-
// C is unused
266-
finalRGBCW[3] = 0;
265+
// keep C unchanged, because it is the lerp value for emulated cool LED
267266
// keep W unchanged
268267
}
269268
}

0 commit comments

Comments
 (0)