diff options
| author | trinity1561 <47289299+trinity1561@users.noreply.github.com> | 2019-07-20 16:37:42 -0400 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-07-20 13:37:42 -0700 |
| commit | b3cdc7ef70dd4bbf7d458a90c75c4d72f97e340e (patch) | |
| tree | 737c94883b0bf47a20d06b2701f63685d2d58df7 | |
| parent | cf2ffadbcdaecd5e480f7e03c8015a06869616e4 (diff) | |
| download | qmk_firmware-b3cdc7ef70dd4bbf7d458a90c75c4d72f97e340e.tar.gz qmk_firmware-b3cdc7ef70dd4bbf7d458a90c75c4d72f97e340e.zip | |
[Keyboard] Update space65.c to fix caps lock LED (#6375)
| -rw-r--r-- | keyboards/gray_studio/space65/space65.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/keyboards/gray_studio/space65/space65.c b/keyboards/gray_studio/space65/space65.c index f9f2224ab..74a86a202 100644 --- a/keyboards/gray_studio/space65/space65.c +++ b/keyboards/gray_studio/space65/space65.c | |||
| @@ -19,6 +19,7 @@ void matrix_init_kb(void) { | |||
| 19 | // put your keyboard start-up code here | 19 | // put your keyboard start-up code here |
| 20 | // runs once when the firmware starts up | 20 | // runs once when the firmware starts up |
| 21 | 21 | ||
| 22 | setPinOutput(E6); | ||
| 22 | matrix_init_user(); | 23 | matrix_init_user(); |
| 23 | } | 24 | } |
| 24 | 25 | ||
| @@ -39,9 +40,9 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | |||
| 39 | void led_set_kb(uint8_t usb_led) { | 40 | void led_set_kb(uint8_t usb_led) { |
| 40 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | 41 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here |
| 41 | if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { | 42 | if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { |
| 42 | writePinHigh(E6); | ||
| 43 | } else { | ||
| 44 | writePinLow(E6); | 43 | writePinLow(E6); |
| 44 | } else { | ||
| 45 | writePinHigh(E6); | ||
| 45 | } | 46 | } |
| 46 | 47 | ||
| 47 | led_set_user(usb_led); | 48 | led_set_user(usb_led); |
