On Tue, 01 Aug 2023 14:49:31 +0200, Marek Behún wrote: > Given channel intensity, LED brightness and max LED brightness, the > multicolor LED framework helper led_mc_calc_color_components() computes > the color channel brightness as > > chan_brightness = brightness * chan_intensity / max_brightness > > Consider the situation when (brightness, intensity, max_brightness) is > for example (16, 15, 255), then chan_brightness is computed to 0 > although the fractional divison would give 0.94, which should be rounded > to 1. > > [...] Applied, thanks! [1/1] leds: multicolor: Use rounded division when calculating color components commit: 065d099f1be58187e6629273c50b948a02b7e1bf -- Lee Jones [李琼斯]