From ba0b69bb890dceb6c5c9f621f244e88547900a29 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Fri, 27 Jan 2017 23:01:25 +0100 Subject: [PATCH] Use the new, double-add protected hook functions Signed-off-by: Gergely Nagy --- src/Akela/Heatmap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Akela/Heatmap.cpp b/src/Akela/Heatmap.cpp index 5131c8d5..20f41727 100644 --- a/src/Akela/Heatmap.cpp +++ b/src/Akela/Heatmap.cpp @@ -69,8 +69,8 @@ namespace Akela { void Heatmap::begin (void) { LEDControl.mode_add (this); - event_handler_hook_add (this->eventHook); - loop_hook_add (this->loopHook); + event_handler_hook_use (this->eventHook); + loop_hook_use (this->loopHook); } void