Use the new, double-add protected hook functions

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/365/head
Gergely Nagy 8 years ago
parent ed92d5109c
commit 975cd0bf04

@ -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

Loading…
Cancel
Save