small fixes
This commit is contained in:
@ -114,14 +114,14 @@ uint8_t RgbLed::applyCal(uint16_t value, const uint16_t* cal)
|
||||
return (value*calValue)/1000;
|
||||
}
|
||||
|
||||
//unfinished
|
||||
void RgbLed::adjustHeadroom(uint8_t& r, uint8_t& g, uint8_t& b, const uint8_t lumina)
|
||||
{
|
||||
uint8_t postCalLumina = ((uint16_t)r+g+b)/3;
|
||||
while(postCalLumina < lumina && r < 255 && g < 255 && b < 255)
|
||||
{
|
||||
if(r > 255);
|
||||
if(r > 255) break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void RgbLed::patternStep()
|
||||
|
Reference in New Issue
Block a user