Removed non-standard configuration in favor for 'led_update_kb'.

This commit is contained in:
Julian Flores 2019-11-26 08:56:05 +01:00
parent b76f0ab587
commit 2c7483f060
2 changed files with 10 additions and 9 deletions

View File

@ -18,12 +18,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
)
};
void led_set_user(uint8_t usb_led) {
if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
DDRF |= (1 << 6); PORTF &= ~(1 << 6);
} else {
DDRF &= ~(1 << 6); PORTF &= ~(1 << 6);
}
}

View File

@ -1 +1,11 @@
#include "tr60w.h"
bool led_update_kb(led_t led_state) {
bool runDefault = led_update_user(led_state);
if (runDefault) {
writePin(B1, !led_state.num_lock);
writePin(B2, !led_state.caps_lock);
writePin(B3, !led_state.scroll_lock);
}
return runDefault;
}