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:
Miika Turkia 2015-02-20 20:35:44 +02:00 committed by Dirk Hohndel
parent fc0d2a3fdb
commit a76d5fb966

View file

@ -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];