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_charlesbiguator.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/survive_charlesbiguator.c') diff --git a/src/survive_charlesbiguator.c b/src/survive_charlesbiguator.c index 8a4d71a..fbba888 100644 --- a/src/survive_charlesbiguator.c +++ b/src/survive_charlesbiguator.c @@ -45,7 +45,7 @@ static void HandleOOTX(SurviveContext *ctx, SurviveObject *so) { } // This is the disambiguator function, for taking light timing and figuring out place-in-sweep for a given photodiode. -void handle_lightcap_charlesbiguator(SurviveObject *so, LightcapElement *le) { +void DisambiguatorCharles(SurviveObject *so, LightcapElement *le) { SurviveContext *ctx = so->ctx; // static int32_t last; // printf( "%d %lu %d %d\n", le->timestamp-last, le->timestamp, le->length, le->sensor_id ); @@ -191,3 +191,5 @@ void handle_lightcap_charlesbiguator(SurviveObject *so, LightcapElement *le) { // Runt pulse, or no sync pulses available. } } + +REGISTER_LINKTIME(DisambiguatorCharles); -- cgit v1.2.3