Use led_set_kb instead of led_set_user in melody96.c
This commit is contained in:
parent
6af77551c6
commit
65906f679d
1 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue