diff options
author | Joel Challis <git@zvecr.com> | 2020-01-19 16:30:34 +0000 |
---|---|---|
committer | Florian Didron <fdidron@users.noreply.github.com> | 2020-02-26 10:15:12 +0900 |
commit | 4885430361f16a905feb9cda4d7faac5de7813ab (patch) | |
tree | 3f4a8f412eab5f71a9b1f9a555b899e33f2149ca /quantum/rgb_matrix.c | |
parent | 141e02df88dae50904b1e0507924e58a0b898a79 (diff) |
Run clang-format manually to fix recently changed files (#7934)
* Run clang-format manually to fix recently changed files
* Run clang-format manually to fix recently changed files - revert template files
* Run clang-format manually to fix recently changed files - format off for ascii_to_keycode_lut
Diffstat (limited to 'quantum/rgb_matrix.c')
-rw-r--r-- | quantum/rgb_matrix.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/quantum/rgb_matrix.c b/quantum/rgb_matrix.c index 27e5c18114..1a9cf82e5f 100644 --- a/quantum/rgb_matrix.c +++ b/quantum/rgb_matrix.c @@ -435,10 +435,10 @@ void rgb_matrix_init(void) { } void rgb_matrix_set_suspend_state(bool state) { - if (state && RGB_DISABLE_WHEN_USB_SUSPENDED) { - rgb_matrix_set_color_all(0, 0, 0); - } - g_suspend_state = state; + if (RGB_DISABLE_WHEN_USB_SUSPENDED && state) { + rgb_matrix_set_color_all(0, 0, 0); // turn off all LEDs when suspending + } + g_suspend_state = state; } void rgb_matrix_toggle(void) { |