Adjust keyboard levels

This commit is contained in:
Jeremy Soller 2018-02-19 11:36:32 -07:00
parent d1e365d21b
commit ab57f0dcea
1 changed files with 2 additions and 2 deletions

4
kb.c
View File

@ -48,7 +48,7 @@ struct {
#undef C #undef C
#define KB_COLOR_DEFAULT KB_COLOR_white #define KB_COLOR_DEFAULT KB_COLOR_white
#define KB_BRIGHTNESS_MAX 3 #define KB_BRIGHTNESS_MAX 5
#define KB_BRIGHTNESS_DEFAULT 0 #define KB_BRIGHTNESS_DEFAULT 0
static int param_set_kb_color(const char *val, const struct kernel_param *kp) static int param_set_kb_color(const char *val, const struct kernel_param *kp)
@ -286,7 +286,7 @@ static void kb_full_color__set_color(unsigned left, unsigned center,
static void kb_full_color__set_brightness(unsigned i) static void kb_full_color__set_brightness(unsigned i)
{ {
u8 lvl; u8 lvl;
u8 lvl_to_raw[] = { 63, 126, 189, 252 }; u8 lvl_to_raw[] = { 48, 72, 96, 144, 192, 255 };
i = clamp_t(unsigned, i, 0, ARRAY_SIZE(lvl_to_raw) - 1); i = clamp_t(unsigned, i, 0, ARRAY_SIZE(lvl_to_raw) - 1);