summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDasky <32983009+daskygit@users.noreply.github.com>2021-07-16 20:16:06 +0100
committerGitHub <noreply@github.com>2021-07-16 12:16:06 -0700
commit932a67ced2c68363b07627ef4c095785f4ec5eee (patch)
tree5204fa8583df163d9bd10c49010c05e8c9599010
parent6c550cc7f715a44a77979cfeec1792e01e4174cd (diff)
downloadqmk_firmware-932a67ced2c68363b07627ef4c095785f4ec5eee.tar.gz
qmk_firmware-932a67ced2c68363b07627ef4c095785f4ec5eee.zip
Limit RGB brightness for crkbd when not defined (#13568)
-rw-r--r--keyboards/crkbd/post_config.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/keyboards/crkbd/post_config.h b/keyboards/crkbd/post_config.h
index e9b0e09dd4..00034a163c 100644
--- a/keyboards/crkbd/post_config.h
+++ b/keyboards/crkbd/post_config.h
@@ -29,3 +29,15 @@
#ifndef BOOTMAGIC_LITE_COLUMN_RIGHT
# define BOOTMAGIC_LITE_COLUMN_RIGHT 1
#endif
+
+#ifdef RGBLIGHT_ENABLE
+# ifndef RGBLIGHT_LIMIT_VAL
+# define RGBLIGHT_LIMIT_VAL 120
+# endif
+#endif
+
+#ifdef RGB_MATRIX_ENABLE
+# ifndef RGB_MATRIX_MAXIMUM_BRIGHTNESS
+# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120
+# endif
+#endif