aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/protocol')
-rw-r--r--tmk_core/protocol/arm_atsam/led_matrix.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tmk_core/protocol/arm_atsam/led_matrix.c b/tmk_core/protocol/arm_atsam/led_matrix.c
index 4b8cc7c5e..69cb03a9f 100644
--- a/tmk_core/protocol/arm_atsam/led_matrix.c
+++ b/tmk_core/protocol/arm_atsam/led_matrix.c
@@ -311,9 +311,11 @@ void led_matrix_indicators(void) {
311 (led_map[i].scan == USB_LED_KANA_SCANCODE && (kbled & (1 << USB_LED_KANA))) || 311 (led_map[i].scan == USB_LED_KANA_SCANCODE && (kbled & (1 << USB_LED_KANA))) ||
312#endif // KANA 312#endif // KANA
313 (0)) { 313 (0)) {
314 led_buffer[i].r = 255 - led_buffer[i].r; 314 if (rgb_matrix_get_flags() & LED_FLAG_INDICATOR) {
315 led_buffer[i].g = 255 - led_buffer[i].g; 315 led_buffer[i].r = 255 - led_buffer[i].r;
316 led_buffer[i].b = 255 - led_buffer[i].b; 316 led_buffer[i].g = 255 - led_buffer[i].g;
317 led_buffer[i].b = 255 - led_buffer[i].b;
318 }
317 } 319 }
318 } 320 }
319 } 321 }