Use led_set_kb instead of led_set_user in melody96.c

This commit is contained in:
Konstantin Đorđević 2019-07-16 17:48:24 +02:00 committed by noroadsleft
parent 6af77551c6
commit 65906f679d

View File

@ -1,7 +1,6 @@
#include "melody96.h"
void led_set_user(uint8_t usb_led) {
void led_set_kb(uint8_t usb_led) {
if (usb_led & (1 << USB_LED_NUM_LOCK)) {
DDRC |= (1 << 6); PORTC &= ~(1 << 6);
} else {
@ -19,4 +18,6 @@ void led_set_user(uint8_t usb_led) {
} else {
DDRB &= ~(1 << 5); PORTB &= ~(1 << 5);
}
led_set_user(usb_led);
}