summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParth Malkan <parthmalkan@google.com>2022-09-23 00:00:15 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-10-05 18:58:30 +0000
commitc9dcc20ddf2af9b2473f0209462d717fe0aa34f5 (patch)
tree619e742e4677a8387e594fdbbef46334f591e4ab
parent4488c476a173378cff485353f666652be3946962 (diff)
downloadchrome-ec-c9dcc20ddf2af9b2473f0209462d717fe0aa34f5.tar.gz
rgbkb: Fix rgb init values
Currently we set the init color to white (0xff). This causes a glitch during bootup if there's a delay in set color host command. Initialize this to 0 instead. BRANCH=None BUG=b:247882525 TEST=none Signed-off-by: Parth Malkan <parthmalkan@google.com> Change-Id: I58eef1c67e6099b5eae75716027f7111fcf4cf22 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3915336 Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
-rw-r--r--common/rgb_keyboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rgb_keyboard.c b/common/rgb_keyboard.c
index 5b5b6c6cf3..5f130ee776 100644
--- a/common/rgb_keyboard.c
+++ b/common/rgb_keyboard.c
@@ -42,7 +42,7 @@ static enum rgbkbd_state rgbkbd_state;
const struct rgbkbd_init rgbkbd_init_default = {
.gcc = RGBKBD_MAX_GCC_LEVEL / 2,
.scale = { RGBKBD_MAX_SCALE, RGBKBD_MAX_SCALE, RGBKBD_MAX_SCALE },
- .color = { .r = 0xff, .g = 0xff, .b = 0xff }, /* white */
+ .color = { .r = 0x0, .g = 0x0, .b = 0x0 },
};
const struct rgbkbd_init *rgbkbd_init_setting = &rgbkbd_init_default;