summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-12-20 13:31:50 +1100
committerGitHub <noreply@github.com>2023-12-20 13:31:50 +1100
commit8812a095814fdad3ab245fa2c00e29cb50ee2e92 (patch)
tree36d112acb15eda1b709809a5dfa762465db9c6dc /quantum
parent73758d3d3a3bbee76bd1c9946d4c663c28f166f0 (diff)
Rename `RGB_DISABLE_WHEN_USB_SUSPENDED` -> `RGB_MATRIX_SLEEP` (#22682)
Diffstat (limited to 'quantum')
-rw-r--r--quantum/rgb_matrix/rgb_matrix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/rgb_matrix/rgb_matrix.c b/quantum/rgb_matrix/rgb_matrix.c
index fb7f20c210..4865664ac0 100644
--- a/quantum/rgb_matrix/rgb_matrix.c
+++ b/quantum/rgb_matrix/rgb_matrix.c
@@ -469,7 +469,7 @@ void rgb_matrix_init(void) {
}
void rgb_matrix_set_suspend_state(bool state) {
-#ifdef RGB_DISABLE_WHEN_USB_SUSPENDED
+#ifdef RGB_MATRIX_SLEEP
if (state && !suspend_state) { // only run if turning off, and only once
rgb_task_render(0); // turn off all LEDs when suspending
rgb_task_flush(0); // and actually flash led state to LEDs