From e871ddaae8d77d0a0b1bcf490ffdcc79cf39a61a Mon Sep 17 00:00:00 2001
From: mechlovin <57231893+mechlovin@users.noreply.github.com>
Date: Wed, 8 Feb 2023 11:51:51 +0700
Subject: [PATCH] [Keyboard] Fix the underglow RGB LED  (#19622)

Co-authored-by: h40 <73354045+h40io@users.noreply.github.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
---
 keyboards/mechlovin/adelais/adelais.c                 | 8 ++++++++
 keyboards/mechlovin/adelais/standard_led/arm/rules.mk | 1 -
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/keyboards/mechlovin/adelais/adelais.c b/keyboards/mechlovin/adelais/adelais.c
index b9df471d33..da954bce04 100644
--- a/keyboards/mechlovin/adelais/adelais.c
+++ b/keyboards/mechlovin/adelais/adelais.c
@@ -15,3 +15,11 @@
  */
 
 #include "adelais.h"
+
+#ifdef RGBLIGHT_ENABLE
+void keyboard_post_init_kb(void) {
+  // Call the post init code.
+  rgblight_sethsv_at(255, 255, 255, 0);	
+    keyboard_post_init_user();
+}
+#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 2a0951eabd..16a636a342 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