Parcourir la source

Fix Bug with (RGB|LED)_DISABLE_WHEN_USB_SUSPENDED define (#13060)

Drashna Jaelre il y a 4 ans
Parent
commit
9975e17712
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      quantum/led_matrix.c
  2. 1 1
      quantum/rgb_matrix.c

+ 1 - 1
quantum/led_matrix.c

@@ -67,7 +67,7 @@ const led_point_t k_led_matrix_center = LED_MATRIX_CENTER;
 #    define LED_DISABLE_TIMEOUT 0
 #endif
 
-#if LED_DISABLE_WHEN_USB_SUSPENDED == false
+#if LED_DISABLE_WHEN_USB_SUSPENDED != 1
 #    undef LED_DISABLE_WHEN_USB_SUSPENDED
 #endif
 

+ 1 - 1
quantum/rgb_matrix.c

@@ -67,7 +67,7 @@ __attribute__((weak)) RGB rgb_matrix_hsv_to_rgb(HSV hsv) { return hsv_to_rgb(hsv
 #    define RGB_DISABLE_TIMEOUT 0
 #endif
 
-#if RGB_DISABLE_WHEN_USB_SUSPENDED == false
+#if RGB_DISABLE_WHEN_USB_SUSPENDED != 1
 #    undef RGB_DISABLE_WHEN_USB_SUSPENDED
 #endif