From d281cd5c40fc2ecf4d3b3d568cc4b793eaf31907 Mon Sep 17 00:00:00 2001 From: krusli Date: Sat, 16 Sep 2017 11:19:13 +1000 Subject: Change max brightness level for iOS --- keyboards/mechmini/keymaps/default/keymap.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/keyboards/mechmini/keymaps/default/keymap.c b/keyboards/mechmini/keymaps/default/keymap.c index cf3d174f9c..b3d2345e95 100644 --- a/keyboards/mechmini/keymaps/default/keymap.c +++ b/keyboards/mechmini/keymaps/default/keymap.c @@ -18,6 +18,9 @@ along with this program. If not, see . #include "action_layer.h" #include "quantum.h" +#define MAX_BRIGHTNESS 15 +#define MAX_BRIGHTNESS_IOS 5 // max brightness suitable for iOS devices + #define _BL 0 #define _FN1 1 #define _FN2 2 @@ -61,8 +64,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { ) */ -uint8_t current_level = 8; -uint8_t prev_current_level = 8; +uint8_t current_level = 2; +uint8_t prev_current_level = 2; int is_on = 0; enum macro_id { @@ -90,7 +93,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { } break; case RGB_LEVEL_UP: - if (event.pressed && current_level < 15) { + if (event.pressed && current_level < MAX_BRIGHTNESS_IOS) { current_level++; prev_current_level++; } -- cgit v1.2.1