diff options
Diffstat (limited to 'core/save-git.c')
-rw-r--r-- | core/save-git.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/save-git.c b/core/save-git.c index 30e776e2f..9979aaf00 100644 --- a/core/save-git.c +++ b/core/save-git.c @@ -253,9 +253,9 @@ static void save_sample(struct membuffer *b, struct sample *sample, struct sampl * We only show sensor information for samples with pressure, and only if it * changed from the previous sensor we showed. */ - if (sample->pressure[0].mbar && sample->sensor != old->sensor) { - put_format(b, " sensor=%d", sample->sensor); - old->sensor = sample->sensor; + if (sample->pressure[0].mbar && sample->sensor[0] != old->sensor[0]) { + put_format(b, " sensor=%d", sample->sensor[0]); + old->sensor[0] = sample->sensor[0]; } /* the deco/ndl values are stored whenever they change */ |