1
0
Fork 0

Rename RGB_DISABLE_WHEN_USB_SUSPENDED -> RGB_MATRIX_SLEEP (#22682)

This commit is contained in:
Ryan 2023-12-20 13:31:50 +11:00 committed by GitHub
parent 73758d3d3a
commit 8812a09581
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
353 changed files with 354 additions and 353 deletions

View file

@ -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