aboutsummaryrefslogtreecommitdiff
path: root/tmk_core
diff options
context:
space:
mode:
authorChris Merrill <cmerrill@mit.edu>2020-11-09 16:33:40 -0500
committerGitHub <noreply@github.com>2020-11-09 13:33:40 -0800
commit16fe4b8b77c2eee7fb1598063d2903086bd03ca4 (patch)
tree3d428997fee42cb52015bdb3304d47b9b14a35e9 /tmk_core
parent84ca67f1583ec1cc3689bd92a602bd8fdc6ad2a6 (diff)
downloadqmk_firmware-16fe4b8b77c2eee7fb1598063d2903086bd03ca4.tar.gz
qmk_firmware-16fe4b8b77c2eee7fb1598063d2903086bd03ca4.zip
Update massdrop/alt and arm_atsam/led_matrix to fix #10813 (#10818)
* Update massdrop/alt keyboard to fix Caps Lock LED flickering. * Fix Caps-lock LED during underglow-only for massdrop/ctrl * Update keyboards/massdrop/ctrl/keymaps/default/keymap.c
Diffstat (limited to 'tmk_core')
-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 }