units: replace SURFACE_PRESSURE by 1_atm

Moreover, convert diveplan::surface_pressure from int to
pressure_t.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-09-09 13:55:37 +02:00 committed by bstoeger
parent ae81b42fe2
commit dd5def35f5
11 changed files with 56 additions and 64 deletions

View file

@ -39,7 +39,7 @@ struct diveplan {
diveplan &operator=(diveplan &&) = default;
timestamp_t when = 0;
int surface_pressure = 0; /* mbar */
pressure_t surface_pressure;
int bottomsac = 0; /* ml/min */
int decosac = 0; /* ml/min */
int salinity = 0;