From ab29e5e39287c19a5407561a2a84b296a0841082 Mon Sep 17 00:00:00 2001 From: Christoffer Sandberg Date: Thu, 3 Sep 2020 10:43:53 +0200 Subject: [PATCH] Tweak reset timout --- src/uniwill_keyboard.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/uniwill_keyboard.h b/src/uniwill_keyboard.h index 1b64d2b..313bbac 100644 --- a/src/uniwill_keyboard.h +++ b/src/uniwill_keyboard.h @@ -23,6 +23,7 @@ #include #include #include +#include #define UNIWILL_WMI_MGMT_GUID_BA "ABBC0F6D-8EA1-11D1-00A0-C90629100000" #define UNIWILL_WMI_MGMT_GUID_BB "ABBC0F6E-8EA1-11D1-00A0-C90629100000" @@ -475,6 +476,8 @@ static void uw_kbd_bl_init_set(void) if (uniwill_kbd_bl_type_rgb_single_color) { // Reset keyboard backlight uniwill_write_kbd_bl_reset(); + // Make sure reset finish before continue + msleep(100); // Disable backlight while initializing // uniwill_write_kbd_bl_enable(0);