diff options
author | mwturvey <michael.w.turvey@intel.com> | 2017-03-28 10:18:29 -0700 |
---|---|---|
committer | mwturvey <michael.w.turvey@intel.com> | 2017-03-28 10:18:29 -0700 |
commit | dc7a75b9be6192a781737c617aab483289235d20 (patch) | |
tree | 60e2a9b51bc009124998628b62593ffba81fc9a6 /src/survive_data.c | |
parent | 6469d979046bf40c4ee76b89d3fc8311dcb16d33 (diff) | |
parent | b3bdcdb838ed57986f359b2181a624bfd1acbbf1 (diff) | |
download | libsurvive-dc7a75b9be6192a781737c617aab483289235d20.tar.gz libsurvive-dc7a75b9be6192a781737c617aab483289235d20.tar.bz2 |
Merge branch 'GetToriGoing' into ToriPoserHomeStretch
# Conflicts:
# src/poser_turveytori.c
Diffstat (limited to 'src/survive_data.c')
-rw-r--r-- | src/survive_data.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/survive_data.c b/src/survive_data.c index 9447104..3eb5890 100644 --- a/src/survive_data.c +++ b/src/survive_data.c @@ -154,8 +154,14 @@ void handle_lightcap2_sync(SurviveObject * so, LightcapElement * le ) { if (lcd->per_sweep.activeLighthouse != -1) { - // hmm, it appears we got two non-skip pulses at the same time. That should never happen - fprintf(stderr, "WARNING: Two non-skip pulses received on the same cycle!\n"); + static int pulseWarningCount=0; + + if (pulseWarningCount < 5) + { + pulseWarningCount++; + // hmm, it appears we got two non-skip pulses at the same time. That should never happen + fprintf(stderr, "WARNING: Two non-skip pulses received on the same cycle!\n"); + } } lcd->per_sweep.activeLighthouse = 1; lcd->per_sweep.activeSweepStartTime = le->timestamp; |