aboutsummaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-06-09 22:59:19 -0700
committerGitHub <noreply@github.com>2021-06-09 22:59:19 -0700
commit7a6e630ffd1a2a8357daf8b7ed2ab766eae55e07 (patch)
treef47997266960b08eca70a929ec19a4093f491ae3 /quantum
parent32b2ac0a807bdb088df685e6118f4c0966b6cca4 (diff)
downloadqmk_firmware-7a6e630ffd1a2a8357daf8b7ed2ab766eae55e07.tar.gz
qmk_firmware-7a6e630ffd1a2a8357daf8b7ed2ab766eae55e07.zip
Fix RGB/LED Suspend defines (#13146)
Diffstat (limited to 'quantum')
-rw-r--r--quantum/led_matrix.c4
-rw-r--r--quantum/rgb_matrix.c4
2 files changed, 0 insertions, 8 deletions
diff --git a/quantum/led_matrix.c b/quantum/led_matrix.c
index 7e0fdf896..942e6d7dc 100644
--- a/quantum/led_matrix.c
+++ b/quantum/led_matrix.c
@@ -67,10 +67,6 @@ const led_point_t k_led_matrix_center = LED_MATRIX_CENTER;
67# define LED_DISABLE_TIMEOUT 0 67# define LED_DISABLE_TIMEOUT 0
68#endif 68#endif
69 69
70#if LED_DISABLE_WHEN_USB_SUSPENDED != 1
71# undef LED_DISABLE_WHEN_USB_SUSPENDED
72#endif
73
74#if !defined(LED_MATRIX_MAXIMUM_BRIGHTNESS) || LED_MATRIX_MAXIMUM_BRIGHTNESS > UINT8_MAX 70#if !defined(LED_MATRIX_MAXIMUM_BRIGHTNESS) || LED_MATRIX_MAXIMUM_BRIGHTNESS > UINT8_MAX
75# undef LED_MATRIX_MAXIMUM_BRIGHTNESS 71# undef LED_MATRIX_MAXIMUM_BRIGHTNESS
76# define LED_MATRIX_MAXIMUM_BRIGHTNESS UINT8_MAX 72# define LED_MATRIX_MAXIMUM_BRIGHTNESS UINT8_MAX
diff --git a/quantum/rgb_matrix.c b/quantum/rgb_matrix.c
index ab8dbd849..27f641797 100644
--- a/quantum/rgb_matrix.c
+++ b/quantum/rgb_matrix.c
@@ -67,10 +67,6 @@ __attribute__((weak)) RGB rgb_matrix_hsv_to_rgb(HSV hsv) { return hsv_to_rgb(hsv
67# define RGB_DISABLE_TIMEOUT 0 67# define RGB_DISABLE_TIMEOUT 0
68#endif 68#endif
69 69
70#if RGB_DISABLE_WHEN_USB_SUSPENDED != 1
71# undef RGB_DISABLE_WHEN_USB_SUSPENDED
72#endif
73
74#if !defined(RGB_MATRIX_MAXIMUM_BRIGHTNESS) || RGB_MATRIX_MAXIMUM_BRIGHTNESS > UINT8_MAX 70#if !defined(RGB_MATRIX_MAXIMUM_BRIGHTNESS) || RGB_MATRIX_MAXIMUM_BRIGHTNESS > UINT8_MAX
75# undef RGB_MATRIX_MAXIMUM_BRIGHTNESS 71# undef RGB_MATRIX_MAXIMUM_BRIGHTNESS
76# define RGB_MATRIX_MAXIMUM_BRIGHTNESS UINT8_MAX 72# define RGB_MATRIX_MAXIMUM_BRIGHTNESS UINT8_MAX