From 511fe643c2ac902e8d42f87bffccdf4aaab700d1 Mon Sep 17 00:00:00 2001 From: Takeshi ISHII <2170248+mtei@users.noreply.github.com> Date: Sat, 11 Apr 2020 17:41:12 +0900 Subject: =?UTF-8?q?[Keymap]=20fix=20OLED=20display=20on=20Helix=20keyboard?= =?UTF-8?q?=20keymaps=20default=20and=E2=80=A6=20(#8737)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since #7773, the mode number of RGBlight is no longer displayed on the Helix OLEDs. I fixed this. --- keyboards/helix/rev2/keymaps/default/keymap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'keyboards/helix/rev2/keymaps/default/keymap.c') diff --git a/keyboards/helix/rev2/keymaps/default/keymap.c b/keyboards/helix/rev2/keymaps/default/keymap.c index 78e3424fd..c575287ee 100644 --- a/keyboards/helix/rev2/keymaps/default/keymap.c +++ b/keyboards/helix/rev2/keymaps/default/keymap.c @@ -536,9 +536,9 @@ static void render_logo(struct CharacterMatrix *matrix) { } static void render_rgbled_status(bool full, struct CharacterMatrix *matrix) { -#if defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_ANIMATIONS) +#ifdef RGBLIGHT_ENABLE char buf[30]; - if(rgblight_config.enable) { + if (RGBLIGHT_MODES > 1 && rgblight_config.enable) { if (full) { snprintf(buf, sizeof(buf), " LED %2d: %d,%d,%d ", rgblight_config.mode, -- cgit v1.2.3