aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/survive.h1
-rw-r--r--src/survive_data.c6
2 files changed, 6 insertions, 1 deletions
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;