Remove deprecated led_set_user
(#23979)
This commit is contained in:
parent
99aa4f5191
commit
cb39df273d
5 changed files with 4 additions and 19 deletions
|
@ -56,19 +56,15 @@ static void handle_backlight_caps_lock(led_t led_state) {
|
|||
#endif
|
||||
|
||||
static uint32_t last_led_modification_time = 0;
|
||||
uint32_t last_led_activity_time(void) {
|
||||
|
||||
uint32_t last_led_activity_time(void) {
|
||||
return last_led_modification_time;
|
||||
}
|
||||
|
||||
uint32_t last_led_activity_elapsed(void) {
|
||||
return timer_elapsed32(last_led_modification_time);
|
||||
}
|
||||
|
||||
/** \brief Lock LED set callback - keymap/user level
|
||||
*
|
||||
* \deprecated Use led_update_user() instead.
|
||||
*/
|
||||
__attribute__((weak)) void led_set_user(uint8_t usb_led) {}
|
||||
|
||||
/** \brief Lock LED update callback - keymap/user level
|
||||
*
|
||||
* \return True if led_update_kb() should run its own code, false otherwise.
|
||||
|
@ -146,7 +142,6 @@ __attribute__((weak)) void led_set(uint8_t usb_led) {
|
|||
handle_backlight_caps_lock((led_t)usb_led);
|
||||
#endif
|
||||
|
||||
led_set_user(usb_led);
|
||||
led_update_kb((led_t)usb_led);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue