aboutsummaryrefslogtreecommitdiffstats
path: root/core/save-xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/save-xml.c')
-rw-r--r--core/save-xml.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/save-xml.c b/core/save-xml.c
index a82fcef4b..f35831461 100644
--- a/core/save-xml.c
+++ b/core/save-xml.c
@@ -256,6 +256,9 @@ static void save_sample(struct membuffer *b, struct sample *sample, struct sampl
pressure_t p = sample->pressure[idx];
int sensor = sample->sensor[idx];
+ if (sensor == NO_SENSOR)
+ continue;
+
if (!p.mbar)
continue;