From 763f524db8db412e340e5925eca6dfdbbb2c2537 Mon Sep 17 00:00:00 2001 From: Kai Ryu Date: Tue, 5 Jan 2016 12:20:31 +0900 Subject: [PATCH] fantastic60: change rgb fade to only 1 level --- keyboard/fantastic60/rgb.c | 6 ++---- keyboard/fantastic60/rgb.h | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/keyboard/fantastic60/rgb.c b/keyboard/fantastic60/rgb.c index ffef81dc..3acfb22b 100644 --- a/keyboard/fantastic60/rgb.c +++ b/keyboard/fantastic60/rgb.c @@ -182,9 +182,7 @@ void rgb_set_level(uint8_t level) rgb_refresh(&rgb_color); /* shift_register_write_word(0x0000); */ break; - case RGB_FADE_SLOW: - case RGB_FADE_MID: - case RGB_FADE_FAST: + case RGB_FADE: if (backlight_config.enable) { if (backlight_config.level >= 1 && backlight_config.level <= 3) { rgb_brightness = backlight_brightness; @@ -193,7 +191,7 @@ void rgb_set_level(uint8_t level) else { rgb_brightness = 16; } - rgb_fading_enable = 3 - (level - RGB_FADE_SLOW); + rgb_fading_enable = 1; /* shift_register_write_word(0x0000); */ break; } diff --git a/keyboard/fantastic60/rgb.h b/keyboard/fantastic60/rgb.h index f1f84e35..3a476c1c 100644 --- a/keyboard/fantastic60/rgb.h +++ b/keyboard/fantastic60/rgb.h @@ -41,10 +41,8 @@ typedef union { enum { RGB_OFF = 0, RGB_FIXED, - RGB_FADE_SLOW, - RGB_FADE_MID, - RGB_FADE_FAST, - RGB_LEVELS = RGB_FADE_FAST + RGB_FADE, + RGB_LEVELS = RGB_FADE }; enum {