From de4eb79c6ad386ad7f7de4fa842a06c5028a8c6c Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Fri, 6 Dec 2019 08:27:04 +0000 Subject: Fix breathing toggle when rgb is disabled (#7550) --- quantum/quantum.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'quantum') diff --git a/quantum/quantum.c b/quantum/quantum.c index 7463c9d73..2def99ac8 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -302,6 +302,11 @@ bool process_record_quantum(keyrecord_t *record) { case OUT_BT: set_output(OUTPUT_BLUETOOTH); return false; +#endif +#if defined(BACKLIGHT_ENABLE) && defined(BACKLIGHT_BREATHING) + case BL_BRTG: + backlight_toggle_breathing(); + return false; #endif } } @@ -454,11 +459,6 @@ bool process_record_quantum(keyrecord_t *record) { rgblight_mode(RGBLIGHT_MODE_RGB_TEST); # endif return false; -#if defined(BACKLIGHT_ENABLE) && defined(BACKLIGHT_BREATHING) - case BL_BRTG: - backlight_toggle_breathing(); - return false; -#endif } } #endif -- cgit v1.2.3