Do not plot temperatures on DM4 import if no info
If we do not have temperature readings, we do not want to plot the temperature samples either. See #415 Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6a0f05eacc
commit
b79ef63388
@ -1802,7 +1802,7 @@ extern int dm4_dive(void *param, int columns, char **data, char **column)
|
||||
else
|
||||
cur_sample->depth.mm = cur_dive->dc.maxdepth.mm;
|
||||
|
||||
if (tempBlob)
|
||||
if (data[18] && data[18][0])
|
||||
cur_sample->temperature.mkelvin = C_to_mkelvin(tempBlob[i]);
|
||||
if (data[19] && data[19][0])
|
||||
cur_sample->cylinderpressure.mbar = pressureBlob[i] ;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user