diff options
author | mwturvey <michael.w.turvey@intel.com> | 2017-03-23 16:26:27 -0700 |
---|---|---|
committer | mwturvey <michael.w.turvey@intel.com> | 2017-03-23 16:26:27 -0700 |
commit | 3d86dda66d50d1e1955d4e0cd5f374e0aed1789f (patch) | |
tree | 42ca25361a394a1213b2808c0607858055555d9d /src/survive_data.c | |
parent | f33018188bf5bdf6f6b8af0d646e3f8c519d9d71 (diff) | |
download | libsurvive-3d86dda66d50d1e1955d4e0cd5f374e0aed1789f.tar.gz libsurvive-3d86dda66d50d1e1955d4e0cd5f374e0aed1789f.tar.bz2 |
Fixed Windows USB Interface Enumeration
Diffstat (limited to 'src/survive_data.c')
-rw-r--r-- | src/survive_data.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/survive_data.c b/src/survive_data.c index da4e0a2..ce263ed 100644 --- a/src/survive_data.c +++ b/src/survive_data.c @@ -208,13 +208,14 @@ void handle_lightcap2_sweep(SurviveObject * so, LightcapElement * le ) // assume that the longest (i.e. strongest signal) is most likely // the non-reflected signal. - if (le->length < 80) - { - // this is a low-quality read. Better to throw it out than to use it. - //fprintf(stderr, "%2d %d\n", le->sensor_id, le->length); - return; - } - fprintf(stderr, "%2d %d\n", le->sensor_id, le->length); + //if (le->length < 80) + //{ + // // this is a low-quality read. Better to throw it out than to use it. + // //fprintf(stderr, "%2d %d\n", le->sensor_id, le->length); + // return; + //} + //fprintf(stderr, "%2d %d\n", le->sensor_id, le->length); + //fprintf(stderr, "."); if (lcd->sweep.sweep_len[le->sensor_id] < le->length) { @@ -269,8 +270,8 @@ int32_t decode_acode(uint32_t length, int32_t main_divisor) { void handle_lightcap( SurviveObject * so, LightcapElement * le ) { SurviveContext * ctx = so->ctx; -// handle_lightcap2(so,le); -// return; + handle_lightcap2(so,le); + return; //int32_t deltat = (uint32_t)le->timestamp - (uint32_t)so->last_master_time; @@ -373,7 +374,7 @@ void handle_lightcap( SurviveObject * so, LightcapElement * le ) int base_station = is_new_pulse; //printf( "%s %d %d %d\n", so->codename, le->sensor_id, so->sync_set_number, le->length ); ctx->lightproc( so, le->sensor_id, -3 - so->sync_set_number, 0, le->timestamp, le->length, base_station); - } + } } |