From e9f38221811cdd15ddb70209f77f7c96582f17ae Mon Sep 17 00:00:00 2001
From: Sets3n
Date: Sun, 19 Jun 2022 10:48:46 +0800
Subject: [PATCH] Modified
---
keyboards/sets3n/zx50/config.h | 5 -----
keyboards/sets3n/zx50/keymaps/default/keymap.c | 3 ++-
keyboards/sets3n/zx50/keymaps/via/keymap.c | 3 ++-
3 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/keyboards/sets3n/zx50/config.h b/keyboards/sets3n/zx50/config.h
index 05fa38fff5a..72499a543a8 100644
--- a/keyboards/sets3n/zx50/config.h
+++ b/keyboards/sets3n/zx50/config.h
@@ -51,9 +51,6 @@
#define ENCODER_RESOLUTION 2
-/* prevent stuck modifiers */
-#define PREVENT_STUCK_MODIFIERS
-
/* RGB pin */
#define RGB_DI_PIN D4
#ifdef RGB_DI_PIN
@@ -82,8 +79,6 @@
#define RGBLIGHT_VAL_STEP 8
#define RGBLIGHT_LIMIT_VAL 230
#define RGBLIGHT_SLEEP
-#define RGBLIGHT_LAYERS
-#define RGBLIGHT_LAYERS_OVERRIDE_RGB_OFF
#endif
#ifdef RGB_MATRIX_ENABLE
diff --git a/keyboards/sets3n/zx50/keymaps/default/keymap.c b/keyboards/sets3n/zx50/keymaps/default/keymap.c
index 9979231c308..a80c2004b9e 100644
--- a/keyboards/sets3n/zx50/keymaps/default/keymap.c
+++ b/keyboards/sets3n/zx50/keymaps/default/keymap.c
@@ -279,7 +279,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) {
return OLED_ROTATION_0;
}
-void oled_task_user(void) {
+bool oled_task_user(void) {
static const char PROGMEM image[] = {0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4};
oled_write_P(image, false);
oled_write_P(PSTR(" Zx50 by Sets3n\n"), false);
@@ -322,5 +322,6 @@ void oled_task_user(void) {
oled_write_P((mods & MOD_MASK_CTRL) ? PSTR("CTL ") : PSTR(" "), false);
oled_write_P((mods & MOD_MASK_SHIFT) ? PSTR("SFT ") : PSTR(" "), false);
+ return false;
}
#endif
diff --git a/keyboards/sets3n/zx50/keymaps/via/keymap.c b/keyboards/sets3n/zx50/keymaps/via/keymap.c
index 9979231c308..a80c2004b9e 100644
--- a/keyboards/sets3n/zx50/keymaps/via/keymap.c
+++ b/keyboards/sets3n/zx50/keymaps/via/keymap.c
@@ -279,7 +279,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) {
return OLED_ROTATION_0;
}
-void oled_task_user(void) {
+bool oled_task_user(void) {
static const char PROGMEM image[] = {0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4};
oled_write_P(image, false);
oled_write_P(PSTR(" Zx50 by Sets3n\n"), false);
@@ -322,5 +322,6 @@ void oled_task_user(void) {
oled_write_P((mods & MOD_MASK_CTRL) ? PSTR("CTL ") : PSTR(" "), false);
oled_write_P((mods & MOD_MASK_SHIFT) ? PSTR("SFT ") : PSTR(" "), false);
+ return false;
}
#endif