aboutsummaryrefslogtreecommitdiff
path: root/src/survive_disambiguator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/survive_disambiguator.c')
-rw-r--r--src/survive_disambiguator.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/survive_disambiguator.c b/src/survive_disambiguator.c
index 6c19475..73e61a8 100644
--- a/src/survive_disambiguator.c
+++ b/src/survive_disambiguator.c
@@ -1,19 +1,21 @@
#include "survive.h"
+#include "survive_playback.h"
#include <os_generic.h>
#include <stdio.h>
-#include "survive_playback.h"
//#define LOG_LIGHTDATA
-void handle_lightcap(SurviveObject *so, LightcapElement *le)
-{
- survive_recording_lightcap(so, le);
+void handle_lightcap(SurviveObject *so, LightcapElement *le) {
+ survive_recording_lightcap(so, le);
#ifdef LOG_LIGHTDATA
- static FILE * flog;
+ static FILE *flog;
static double start = 0;
- if( !flog ) { flog = fopen( "lightcap.txt", "wb" ); start = OGGetAbsoluteTime(); }
- fprintf( flog, "%.6f %2d %4d %9d\n", OGGetAbsoluteTime()-start, le->sensor_id, le->length, le->timestamp );
+ if (!flog) {
+ flog = fopen("lightcap.txt", "wb");
+ start = OGGetAbsoluteTime();
+ }
+ fprintf(flog, "%.6f %2d %4d %9d\n", OGGetAbsoluteTime() - start, le->sensor_id, le->length, le->timestamp);
#endif
so->ctx->lightcapfunction(so, le);
}