refactor: Improve utils code style (#841)

* Improve utils code style

* Fix indendation

Co-authored-by: brindosch <edeltraud70@gmx.de>
This commit is contained in:
Murat Seker
2020-06-28 23:12:22 +02:00
committed by GitHub
parent bfb50b8d91
commit 458113f8f9
15 changed files with 71 additions and 98 deletions

View File

@@ -98,7 +98,7 @@ uint8_t RgbTransform::getBrightness() const
void RgbTransform::setBrightness(uint8_t brightness)
{
_brightness = brightness;
_brightness = brightness;
updateBrightnessComponents();
}
@@ -117,7 +117,7 @@ void RgbTransform::updateBrightnessComponents()
{
double Fw = _brightnessCompensation*2.0/100.0+1.0;
double Fcmy = _brightnessCompensation/100.0+1.0;
double B_in= 0;
_brightness_rgb = 0;
_brightness_cmy = 0;
@@ -133,7 +133,7 @@ void RgbTransform::updateBrightnessComponents()
}
}
void RgbTransform::getBrightnessComponents(uint8_t & rgb, uint8_t & cmy, uint8_t & w )
void RgbTransform::getBrightnessComponents(uint8_t & rgb, uint8_t & cmy, uint8_t & w) const
{
rgb = _brightness_rgb;
cmy = _brightness_cmy;