sdm845-common: lights: Halve blue brightness as well
* Our not so RGB led seems to have a really low red led * Matches stock behavior Change-Id: Ib1f9cb7803971b939ad69d59d1437729bf86a4a4
This commit is contained in:
parent
f67403199e
commit
fd0806b534
1 changed files with 2 additions and 2 deletions
|
@ -87,9 +87,9 @@ void Light::handleRgb(const LightState& state, size_t index) {
|
|||
|
||||
std::map<std::string, int> colorValues;
|
||||
colorValues["red"] = (stateToUse.color >> 16) & 0xff;
|
||||
// lower green brightness to adjust for the (lower) brightness of red and blue
|
||||
// lower green and blue brightness to adjust for the (lower) brightness of red
|
||||
colorValues["green"] = ((stateToUse.color >> 8) & 0xff) / 2;
|
||||
colorValues["blue"] = stateToUse.color & 0xff;
|
||||
colorValues["blue"] = (stateToUse.color & 0xff) / 2;
|
||||
|
||||
int onMs = stateToUse.flashMode == Flash::TIMED ? stateToUse.flashOnMs : 0;
|
||||
int offMs = stateToUse.flashMode == Flash::TIMED ? stateToUse.flashOffMs : 0;
|
||||
|
|
Loading…
Reference in a new issue