diff options
| author | IBNobody <protospherex@gmail.com> | 2016-03-22 20:58:44 -0500 |
|---|---|---|
| committer | IBNobody <protospherex@gmail.com> | 2016-03-22 20:58:44 -0500 |
| commit | 10491ba21f91526c2011f43523dcde8710706dff (patch) | |
| tree | a83989af114543d56d7e27697cee3348ce9d25bf /quantum/led.c | |
| parent | ec62d9e85cab5cf166241b0536120d005fa7c898 (diff) | |
| download | qmk_firmware-10491ba21f91526c2011f43523dcde8710706dff.tar.gz qmk_firmware-10491ba21f91526c2011f43523dcde8710706dff.zip | |
Fixed LED Function Calls
Fixed LED indicator function calls to match how the matrix init function
calls are formatted.
Diffstat (limited to 'quantum/led.c')
| -rw-r--r-- | quantum/led.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/quantum/led.c b/quantum/led.c index a53e94043..42525090b 100644 --- a/quantum/led.c +++ b/quantum/led.c | |||
| @@ -16,16 +16,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 16 | */ | 16 | */ |
| 17 | 17 | ||
| 18 | #include <avr/io.h> | 18 | #include <avr/io.h> |
| 19 | #include <stddef.h> | 19 | #include "stdint.h" |
| 20 | #include "led.h" | 20 | #include "led.h" |
| 21 | 21 | ||
| 22 | __attribute__ ((weak)) | 22 | __attribute__ ((weak)) |
| 23 | void * led_set_kb(uint8_t usb_led) { | 23 | void led_set_kb(uint8_t usb_led) { |
| 24 | return NULL; | 24 | |
| 25 | }; | 25 | }; |
| 26 | 26 | ||
| 27 | void led_set(uint8_t usb_led) | 27 | void led_set(uint8_t usb_led) |
| 28 | { | 28 | { |
| 29 | |||
| 30 | // Example LED Code | ||
| 31 | // | ||
| 29 | // // Using PE6 Caps Lock LED | 32 | // // Using PE6 Caps Lock LED |
| 30 | // if (usb_led & (1<<USB_LED_CAPS_LOCK)) | 33 | // if (usb_led & (1<<USB_LED_CAPS_LOCK)) |
| 31 | // { | 34 | // { |
| @@ -40,9 +43,5 @@ void led_set(uint8_t usb_led) | |||
| 40 | // PORTE &= ~(1<<6); | 43 | // PORTE &= ~(1<<6); |
| 41 | // } | 44 | // } |
| 42 | 45 | ||
| 43 | if (led_set_kb) { | 46 | led_set_kb(usb_led); |
| 44 | (*led_set_kb)(usb_led); | ||
| 45 | } | ||
| 46 | |||
| 47 | return; | ||
| 48 | } | 47 | } |
