From 498d88010748e8be0b883c638b02552730e21727 Mon Sep 17 00:00:00 2001 From: mechlovin <57231893+mechlovin@users.noreply.github.com> Date: Wed, 18 Jan 2023 15:28:19 +0700 Subject: [PATCH 1/4] Fix the first underglow LED stuck in green. --- keyboards/mechlovin/adelais/adelais.c | 7 +++++++ keyboards/mechlovin/adelais/standard_led/arm/rules.mk | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/keyboards/mechlovin/adelais/adelais.c b/keyboards/mechlovin/adelais/adelais.c index b9df471d3351..5fd31f0fe604 100644 --- a/keyboards/mechlovin/adelais/adelais.c +++ b/keyboards/mechlovin/adelais/adelais.c @@ -15,3 +15,10 @@ */ #include "adelais.h" + +#ifdef RGBLIGHT_ENABLE +void keyboard_post_init_kb(void) { + // Call the post init code. + rgblight_sethsv_at(255, 255, 255, 0); +} +#endif \ No newline at end of file diff --git a/keyboards/mechlovin/adelais/standard_led/arm/rules.mk b/keyboards/mechlovin/adelais/standard_led/arm/rules.mk index 2a0951eabd36..16a636a342ba 100644 --- a/keyboards/mechlovin/adelais/standard_led/arm/rules.mk +++ b/keyboards/mechlovin/adelais/standard_led/arm/rules.mk @@ -1,2 +1 @@ -WS2812_DRIVER = spi DEFAULT_FOLDER = mechlovin/adelais/standard_led/arm/rev2 \ No newline at end of file From 84418a4e14687d5460f8536ed005af24454ce3ca Mon Sep 17 00:00:00 2001 From: mechlovin <57231893+mechlovin@users.noreply.github.com> Date: Mon, 30 Jan 2023 09:33:27 +0700 Subject: [PATCH 2/4] Update keyboards/mechlovin/adelais/adelais.c Co-authored-by: h40 <73354045+h40io@users.noreply.github.com> --- keyboards/mechlovin/adelais/adelais.c | 1 + 1 file changed, 1 insertion(+) diff --git a/keyboards/mechlovin/adelais/adelais.c b/keyboards/mechlovin/adelais/adelais.c index 5fd31f0fe604..cd127d66fb89 100644 --- a/keyboards/mechlovin/adelais/adelais.c +++ b/keyboards/mechlovin/adelais/adelais.c @@ -21,4 +21,5 @@ void keyboard_post_init_kb(void) { // Call the post init code. rgblight_sethsv_at(255, 255, 255, 0); } +#endif #endif \ No newline at end of file From c64e37cb1eff974f4a80dda29dcbe25c731c929b Mon Sep 17 00:00:00 2001 From: mechlovin <57231893+mechlovin@users.noreply.github.com> Date: Mon, 30 Jan 2023 09:33:32 +0700 Subject: [PATCH 3/4] Update keyboards/mechlovin/adelais/adelais.c Co-authored-by: Drashna Jaelre --- keyboards/mechlovin/adelais/adelais.c | 1 + 1 file changed, 1 insertion(+) diff --git a/keyboards/mechlovin/adelais/adelais.c b/keyboards/mechlovin/adelais/adelais.c index cd127d66fb89..5aa9fa8d6d80 100644 --- a/keyboards/mechlovin/adelais/adelais.c +++ b/keyboards/mechlovin/adelais/adelais.c @@ -20,6 +20,7 @@ void keyboard_post_init_kb(void) { // Call the post init code. rgblight_sethsv_at(255, 255, 255, 0); + keyboard_post_init_user(); } #endif #endif \ No newline at end of file From 6ff5d45aa6f227af944d48bfe92e383e0142a784 Mon Sep 17 00:00:00 2001 From: mechlovin <57231893+mechlovin@users.noreply.github.com> Date: Mon, 30 Jan 2023 09:43:49 +0700 Subject: [PATCH 4/4] Update adelais.c --- keyboards/mechlovin/adelais/adelais.c | 1 - 1 file changed, 1 deletion(-) diff --git a/keyboards/mechlovin/adelais/adelais.c b/keyboards/mechlovin/adelais/adelais.c index 5aa9fa8d6d80..da954bce04ed 100644 --- a/keyboards/mechlovin/adelais/adelais.c +++ b/keyboards/mechlovin/adelais/adelais.c @@ -22,5 +22,4 @@ void keyboard_post_init_kb(void) { rgblight_sethsv_at(255, 255, 255, 0); keyboard_post_init_user(); } -#endif #endif \ No newline at end of file