diff options
Diffstat (limited to 'core/save-git.c')
-rw-r--r-- | core/save-git.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/save-git.c b/core/save-git.c index 6bd237a8b..fc6567950 100644 --- a/core/save-git.c +++ b/core/save-git.c @@ -258,6 +258,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; |