From 1e7fc086a10d532c1f3841094d95d9285079a896 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Fri, 24 Nov 2023 14:41:28 +0800 Subject: [PATCH] fl16: Allow next/prev effect keys to turn RGB on If using VIA the backlight was set to effect 0, the only way to turn it back on is using VIA or the RGB toggle key. But the user would expect the next/prev animation key to also work. Signed-off-by: Daniel Schaefer --- keyboards/framework/framework.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/keyboards/framework/framework.c b/keyboards/framework/framework.c index ad7a930ec0..375e624ce2 100644 --- a/keyboards/framework/framework.c +++ b/keyboards/framework/framework.c @@ -186,6 +186,13 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) { switch (keycode) { // Implement step brightness for RGB backlight #ifdef RGB_MATRIX_ENABLE + case RGB_MODE_FORWARD: + case RGB_MODE_REVERSE: + // Turn on if it was off + if (!rgb_matrix_is_enabled()) { + rgb_matrix_enable(); + } + return true; case BL_STEP: if (record->event.pressed) { h = rgb_matrix_get_hue();