Use non-deprecated functions for event handler & loop hook registration

We want to phase out `event_handler_hook_use` and `loop_hook_use`, so use the
new methods instead.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/389/head
Gergely Nagy 7 years ago
parent 40c843958a
commit 5cd5eab50d

@ -205,8 +205,8 @@ OneShot::OneShot(void) {
}
void OneShot::begin(void) {
event_handler_hook_use(eventHandlerHook);
loop_hook_use(loopHook);
Kaleidoscope.useEventHandlerHook(eventHandlerHook);
Kaleidoscope.useLoopHook(loopHook);
}
bool OneShot::isActive(void) {

Loading…
Cancel
Save