From 3a0c6bbd603e9420ef2d8eaf9e3b71f7ddd6538a Mon Sep 17 00:00:00 2001 From: Justin Berger Date: Thu, 22 Mar 2018 09:51:01 -0600 Subject: Made disambiguator configurable --- src/survive_turveybiguator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/survive_turveybiguator.c') diff --git a/src/survive_turveybiguator.c b/src/survive_turveybiguator.c index bc69938..8dbce46 100644 --- a/src/survive_turveybiguator.c +++ b/src/survive_turveybiguator.c @@ -282,7 +282,6 @@ static void handle_lightcap2_sync(SurviveObject *so, LightcapElement *le) { // static unsigned int recent_sync_time = 0; // static unsigned int recent_sync_count = -1; // static unsigned int activeSweepStartTime; - int acode = handle_lightcap2_getAcodeFromSyncPulse(so, le->length); // acode for this sensor reading // Process any sweep data we have @@ -435,7 +434,7 @@ static void handle_lightcap2_sweep(SurviveObject *so, LightcapElement *le) { } } -void handle_lightcap_turveybiguator(SurviveObject *so, LightcapElement *le) { +void DisambiguatorTurvey(SurviveObject *so, LightcapElement *le) { SurviveContext *ctx = so->ctx; if (so->disambiguator_data == NULL) { @@ -463,3 +462,4 @@ void handle_lightcap_turveybiguator(SurviveObject *so, LightcapElement *le) { handle_lightcap2_sweep(so, le); } +REGISTER_LINKTIME(DisambiguatorTurvey); -- cgit v1.2.3