mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 00:33:24 +00:00
Fix surface pressure on DM5 import
Seems that DM5 uses pascal as pressure unit for surface pressure. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
fc0d2a3fdb
commit
a76d5fb966
1 changed files with 1 additions and 1 deletions
|
@ -2281,7 +2281,7 @@ extern int dm5_dive(void *param, int columns, char **data, char **column)
|
|||
}
|
||||
|
||||
if (data[14])
|
||||
cur_dive->dc.surface_pressure.mbar = (atoi(data[14]) * 1000);
|
||||
cur_dive->dc.surface_pressure.mbar = (atoi(data[14]) / 100);
|
||||
|
||||
interval = data[16] ? atoi(data[16]) : 0;
|
||||
sampleBlob = (unsigned const char *)data[24];
|
||||
|
|
Loading…
Add table
Reference in a new issue