From bcea56b21f1179ff1587f0727c9b0e597c60abfd Mon Sep 17 00:00:00 2001 From: filterpaper Date: Mon, 26 Apr 2021 11:28:41 +0800 Subject: [PATCH 1/3] Allow user override to the suspend setting --- keyboards/bm40hsrgb/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboards/bm40hsrgb/config.h b/keyboards/bm40hsrgb/config.h index 84d0950d59e1..167a5667a441 100755 --- a/keyboards/bm40hsrgb/config.h +++ b/keyboards/bm40hsrgb/config.h @@ -50,6 +50,6 @@ #ifdef RGB_DI_PIN #define RGB_MATRIX_KEYPRESSES // reacts to keypresses #endif -#ifdef RGB_MATRIX_ENABLE +#ifndef RGB_DISABLE_WHEN_USB_SUSPENDED # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended #endif From cef241e9c1660983eca7f836f7380a2b1998df36 Mon Sep 17 00:00:00 2001 From: filterpaper Date: Fri, 11 Jun 2021 12:49:16 +0800 Subject: [PATCH 2/3] Align RGB_DISABLE_WHEN_USB_SUSPENDED define with new develop change --- keyboards/bm40hsrgb/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboards/bm40hsrgb/config.h b/keyboards/bm40hsrgb/config.h index 167a5667a441..ba386151135b 100755 --- a/keyboards/bm40hsrgb/config.h +++ b/keyboards/bm40hsrgb/config.h @@ -51,5 +51,5 @@ #define RGB_MATRIX_KEYPRESSES // reacts to keypresses #endif #ifndef RGB_DISABLE_WHEN_USB_SUSPENDED -# define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended +# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended #endif From c2cf4e9693e946c852c535aa3d83fc0b220afe14 Mon Sep 17 00:00:00 2001 From: Albert Y <76888457+filterpaper@users.noreply.github.com> Date: Wed, 16 Jun 2021 12:42:44 +0800 Subject: [PATCH 3/3] Update logic to suggested change. Co-authored-by: Drashna Jaelre --- keyboards/bm40hsrgb/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboards/bm40hsrgb/config.h b/keyboards/bm40hsrgb/config.h index ba386151135b..167a5667a441 100755 --- a/keyboards/bm40hsrgb/config.h +++ b/keyboards/bm40hsrgb/config.h @@ -51,5 +51,5 @@ #define RGB_MATRIX_KEYPRESSES // reacts to keypresses #endif #ifndef RGB_DISABLE_WHEN_USB_SUSPENDED -# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended +# define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended #endif