diff options
Diffstat (limited to 'core/save-xml.c')
-rw-r--r-- | core/save-xml.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/save-xml.c b/core/save-xml.c index f0583fb6b..151ebf0a3 100644 --- a/core/save-xml.c +++ b/core/save-xml.c @@ -207,9 +207,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 */ |