aboutsummaryrefslogtreecommitdiff
path: root/data_recorder.c
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2016-12-17 16:58:57 -0500
committercnlohr <lohr85@gmail.com>2016-12-17 16:58:57 -0500
commitd4ccaa85963c08e7095f49a0378dc21fdf701209 (patch)
tree37e54972fba7379b0aa97aa393d8a3475af2eb64 /data_recorder.c
parentcc05bcaf95b80dc89cbe1f8486c0ed14dc4d956c (diff)
downloadlibsurvive-d4ccaa85963c08e7095f49a0378dc21fdf701209.tar.gz
libsurvive-d4ccaa85963c08e7095f49a0378dc21fdf701209.tar.bz2
Fix light disambiguator location, put with the object instead of the system.
Diffstat (limited to 'data_recorder.c')
-rw-r--r--data_recorder.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/data_recorder.c b/data_recorder.c
index 24c8bc1..913f8e0 100644
--- a/data_recorder.c
+++ b/data_recorder.c
@@ -44,7 +44,7 @@ void my_light_process( struct SurviveObject * so, int sensor_id, int acode, int
if( acode == 0 || acode == 2 ) //data = 0
{
printf( "L X %s %d %d %d %d %d\n", so->codename, timecode, sensor_id, acode, timeinsweep, length );
- if( strcmp( so->codename, "HED" ) == 0 )
+ if( strcmp( so->codename, "HMD" ) == 0 )
{
bufferpts[sensor_id*2+0] = (timeinsweep-100000)/500;
buffertimeto[sensor_id] = 0;
@@ -53,7 +53,7 @@ void my_light_process( struct SurviveObject * so, int sensor_id, int acode, int
if( acode == 1 || acode == 3 ) //data = 1
{
printf( "L Y %s %d %d %d %d %d\n", so->codename, timecode, sensor_id, acode, timeinsweep, length );
- if( strcmp( so->codename, "HED" ) == 0 )
+ if( strcmp( so->codename, "HMD" ) == 0 )
{
bufferpts[sensor_id*2+1] = (timeinsweep-100000)/500;
buffertimeto[sensor_id] = 0;
@@ -64,7 +64,7 @@ void my_light_process( struct SurviveObject * so, int sensor_id, int acode, int
if( acode == 4 || acode == 6 ) //data = 0
{
printf( "R X %s %d %d %d %d %d\n", so->codename, timecode, sensor_id, acode, timeinsweep, length );
- if( strcmp( so->codename, "HED" ) == 0 )
+ if( strcmp( so->codename, "HMD" ) == 0 )
{
bufferpts[sensor_id*2+0] = (timeinsweep-100000)/500;
buffertimeto[sensor_id] = 0;
@@ -73,7 +73,7 @@ void my_light_process( struct SurviveObject * so, int sensor_id, int acode, int
if( acode == 5 || acode == 7 ) //data = 1
{
printf( "R Y %s %d %d %d %d %d\n", so->codename, timecode, sensor_id, acode, timeinsweep, length );
- if( strcmp( so->codename, "HED" ) == 0 )
+ if( strcmp( so->codename, "HMD" ) == 0 )
{
bufferpts[sensor_id*2+1] = (timeinsweep-100000)/500;
buffertimeto[sensor_id] = 0;