aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulian Picht <julian.picht@gmail.com>2016-12-27 01:13:34 +0100
committerJulian Picht <julian.picht@gmail.com>2016-12-27 01:13:34 +0100
commit5d73a53807639a3d6b989e4cd669f3ff983e62c5 (patch)
treebaed6717c8f78188ab2efd63a0a6bb52b7d5a356 /src
parent2df2cc1a13797fd905fe89b787533635c6e6896d (diff)
downloadlibsurvive-5d73a53807639a3d6b989e4cd669f3ff983e62c5.tar.gz
libsurvive-5d73a53807639a3d6b989e4cd669f3ff983e62c5.tar.bz2
fix integration of my disambiguator
Diffstat (limited to 'src')
-rw-r--r--src/survive_data.c6
1 files changed, 5 insertions, 1 deletions
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;