From 5d73a53807639a3d6b989e4cd669f3ff983e62c5 Mon Sep 17 00:00:00 2001 From: Julian Picht Date: Tue, 27 Dec 2016 01:13:34 +0100 Subject: fix integration of my disambiguator --- include/survive.h | 1 + src/survive_data.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/survive.h b/include/survive.h index cf2ab81..30ee310 100644 --- a/include/survive.h +++ b/include/survive.h @@ -35,6 +35,7 @@ struct SurviveObject int32_t last_photo_time; int32_t last_photo_length; #else + int32_t last_photo_time; struct disambiguator * d; #endif diff --git a/src/survive_data.c b/src/survive_data.c index 791bdf6..3e5f14e 100644 --- a/src/survive_data.c +++ b/src/survive_data.c @@ -43,9 +43,13 @@ static void handle_lightcap( struct SurviveObject * so, struct LightcapElement * int32_t offset = le->timestamp - so->d->last; switch( disambiguator_step( so->d, le->timestamp, le->length ) ) { default: + case P_SLAVE: + // this is only interesting for the OOTX data + break; case P_UNKNOWN: // not currently locked - case P_SYNC: + break; + case P_MASTER: ct->lightproc( so, le->sensor_id, -1, 0, le->timestamp, offset ); so->d->code = ((le->length+125)/250) - 12; break; -- cgit v1.2.3