aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2018-03-16 18:03:34 -0600
committerJustin Berger <j.david.berger@gmail.com>2018-03-16 18:03:34 -0600
commit1fe0debd6474c0368f81159cd6a0451edbc6d381 (patch)
tree1d5b63702ce57b665185919c0431714d53747047 /src
parente175d0bd2e51263934086f7898911af4e2ce4ab7 (diff)
downloadlibsurvive-1fe0debd6474c0368f81159cd6a0451edbc6d381.tar.gz
libsurvive-1fe0debd6474c0368f81159cd6a0451edbc6d381.tar.bz2
Added a lot of features to the viz tool
Diffstat (limited to 'src')
-rw-r--r--src/survive_playback.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/survive_playback.c b/src/survive_playback.c
index cd7906e..df9fcaa 100644
--- a/src/survive_playback.c
+++ b/src/survive_playback.c
@@ -70,14 +70,14 @@ static int parse_and_run_lightcode(const char *line,
char axn[10];
char dev[10];
uint32_t timecode = 0;
- int sensor = 0;
+ int sensor_id = 0;
int acode = 0;
int timeinsweep = 0;
- uint32_t pulselength = 0;
+ uint32_t length = 0;
uint32_t lh = 0;
- int rr = sscanf(line, "%8s %8s %8s %u %d %d %d %u %u\n", dev, lhn, axn, &timecode, &sensor, &acode, &timeinsweep,
- &pulselength, &lh);
+ int rr = sscanf(line, "%8s %8s %8s %u %d %d %d %u %u\n", dev, lhn, axn, &sensor_id, &acode, &timeinsweep, &timecode,
+ &length, &lh);
if (rr != 9) {
fprintf(stderr, "Warning: On line %d, only %d values read: '%s'\n",
@@ -97,8 +97,7 @@ static int parse_and_run_lightcode(const char *line,
return -1;
}
- driver->ctx->lightproc(so, sensor, acode, timeinsweep, timecode,
- pulselength, lh);
+ driver->ctx->lightproc(so, sensor_id, acode, timeinsweep, timecode, length, lh);
return 0;
}