summaryrefslogtreecommitdiffstats
path: root/keyboards/iron180
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2022-10-15 21:09:03 +0200
committerGitHub <noreply@github.com>2022-10-15 15:09:03 -0400
commit2ee573fc5f9076d1773bd17c851cd581cc67582f (patch)
tree6cf109bd5fd93eba39bf72a77a7e362f4980726c /keyboards/iron180
parentad8630bd7229937877aa9a29693bbb8942a27abe (diff)
led_update_kb -> led_update_ports where appropriate (#18716)
Following #14452, less boilerplate is needed to customize indicator led control.
Diffstat (limited to 'keyboards/iron180')
-rw-r--r--keyboards/iron180/iron180.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/keyboards/iron180/iron180.c b/keyboards/iron180/iron180.c
index 546ff7fc8f..402ee23e1f 100644
--- a/keyboards/iron180/iron180.c
+++ b/keyboards/iron180/iron180.c
@@ -18,8 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "iron180.h"
#ifdef CAPSLOCK_BACKLIGHT
-bool led_update_kb(led_t led_state) {
- bool res = led_update_user(led_state);
+void led_update_ports(led_t led_state) {
if (!led_state.caps_lock){
if (is_backlight_breathing()) breathing_disable();
backlight_disable();
@@ -28,6 +27,5 @@ bool led_update_kb(led_t led_state) {
if (is_backlight_breathing()) breathing_enable();
backlight_enable();
}
- return res;
}
#endif