diff options
Diffstat (limited to 'core/profile.c')
-rw-r--r-- | core/profile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/profile.c b/core/profile.c index d20d068e3..2db4c54c3 100644 --- a/core/profile.c +++ b/core/profile.c @@ -566,9 +566,9 @@ static void populate_plot_entries(const struct dive *dive, const struct divecomp } else { entry->pressures.o2 = sample->setpoint.mbar / 1000.0; } - if (sample->pressure[0].mbar) + if (sample->pressure[0].mbar && sample->sensor[0] != NO_SENSOR) set_plot_pressure_data(pi, idx, SENSOR_PR, sample->sensor[0], sample->pressure[0].mbar); - if (sample->pressure[1].mbar) + if (sample->pressure[1].mbar && sample->sensor[1] != NO_SENSOR) set_plot_pressure_data(pi, idx, SENSOR_PR, sample->sensor[1], sample->pressure[1].mbar); if (sample->temperature.mkelvin) entry->temperature = lasttemp = sample->temperature.mkelvin; |