aboutsummaryrefslogtreecommitdiff
path: root/src/survive_data.c
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2016-12-20 22:44:10 -0500
committercnlohr <lohr85@gmail.com>2016-12-20 22:44:10 -0500
commit093802f9cc7ebaa0bfe8d862766e7e08026576f0 (patch)
tree1336b7d27114f73b5c9f60a4f8b0850d40edf735 /src/survive_data.c
parentbbb1ef6a917a3e0b94c8278b3c6643b523aad5c0 (diff)
downloadlibsurvive-093802f9cc7ebaa0bfe8d862766e7e08026576f0.tar.gz
libsurvive-093802f9cc7ebaa0bfe8d862766e7e08026576f0.tar.bz2
switch to a hidden disambiguator.
Diffstat (limited to 'src/survive_data.c')
-rw-r--r--src/survive_data.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/survive_data.c b/src/survive_data.c
index ef35e0e..cb3e8a2 100644
--- a/src/survive_data.c
+++ b/src/survive_data.c
@@ -42,18 +42,18 @@ static void handle_lightcap( struct SurviveObject * so, struct LightcapElement *
if( le->type != 0xfe || le->length < 50 ) return;
//le->timestamp += (le->length/2);
- int32_t offset = le->timestamp - so->d.last;
- switch(disambiguator_step(&(so->d), le->timestamp, le->length)) {
+ int32_t offset = le->timestamp - so->d->last;
+ switch( disambiguator_step( so->d, le->timestamp, le->length ) ) {
default:
case P_UNKNOWN:
// not currently locked
case P_SYNC:
ct->lightproc( so, le->sensor_id, -1, 0, le->timestamp, offset );
- so->d.code = ((le->length+125)/250) - 12;
+ so->d->code = ((le->length+125)/250) - 12;
break;
case P_SWEEP:
- if (so->d.code & 1) return;
- ct->lightproc( so, le->sensor_id, so->d.code >> 1, offset, le->timestamp, le->length );
+ if (so->d->code & 1) return;
+ ct->lightproc( so, le->sensor_id, so->d->code >> 1, offset, le->timestamp, le->length );
break;
}
#if 0