From 975cd0bf045b3872fde47724518cc71f43bd0de5 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Fri, 27 Jan 2017 23:09:19 +0100 Subject: [PATCH] Use the new, double-add protected hook functions Signed-off-by: Gergely Nagy --- src/Keyboardio-LEDEffect-Numlock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Keyboardio-LEDEffect-Numlock.cpp b/src/Keyboardio-LEDEffect-Numlock.cpp index 6468fd78..2f8f9759 100644 --- a/src/Keyboardio-LEDEffect-Numlock.cpp +++ b/src/Keyboardio-LEDEffect-Numlock.cpp @@ -14,7 +14,7 @@ LEDNumlock::LEDNumlock (uint8_t numpadIdx) { void LEDNumlock::begin (void) { us = LEDControl.mode_add (this); - loop_hook_add (this->loopHook); + loop_hook_use (this->loopHook); } void