spark/core-common-lib — pull request #7 by mattande (2014-02-10 20:08:46+00:00)
Title: Fix RGB_SetBrightness() so new brightness setting is applied immediately

Currently if the RGB brightness is changed, the capture/compare thresholds are not updated until either 1) an override color is set, or 2) a new RGB color is set. This change allows the brightness setting to be applied immediately after RGB.brightness() is called by storing the previously set RGB or signaling color and recomputing the CC thresholds.