diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-01-30 21:17:47 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-12 18:19:07 +0300 |
commit | a12adf8e2a5a9fc2471874e69d31ce50bbaf4cb8 (patch) | |
tree | 14c6e917c4cb89e70d3986739f31590930aa7659 | |
parent | 42cfd3f9638a5f9d37e51285e6d1eaaad3e78501 (diff) | |
download | subsurface-a12adf8e2a5a9fc2471874e69d31ce50bbaf4cb8.tar.gz |
Pedantic: K are an absolute scale, which are not given in degrees
Since somewhere in the 1960s. "Fix" a few comments.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r-- | core/dive.h | 2 | ||||
-rw-r--r-- | core/units.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/dive.h b/core/dive.h index 6d6ea5a90..7075cb143 100644 --- a/core/dive.h +++ b/core/dive.h @@ -163,7 +163,7 @@ struct sample // BASE TYPE BYTES UNITS RANGE duration_t rbt; // int32_t 4 seconds (0-34 yrs) remaining bottom time depth_t depth; // int32_t 4 mm (0-2000 km) dive depth of this sample depth_t stopdepth; // int32_t 4 mm (0-2000 km) depth of next deco stop - temperature_t temperature; // uint32_t 4 mdegrK (0-4 MdegK) ambient temperature + temperature_t temperature; // uint32_t 4 mK (0-4 MK) ambient temperature pressure_t pressure[MAX_SENSORS]; // int32_t 4 mbar (0-2 Mbar) cylinder pressures (main and CCR o2) o2pressure_t setpoint; // uint16_t 2 mbar (0-65 bar) O2 partial pressure (will be setpoint) o2pressure_t o2sensor[3]; // uint16_t 6 mbar (0-65 bar) Up to 3 PO2 sensor values (rebreather) diff --git a/core/units.h b/core/units.h index 0e2c2b2e3..60475b75c 100644 --- a/core/units.h +++ b/core/units.h @@ -106,12 +106,12 @@ typedef struct typedef struct { - uint32_t mkelvin; // up to 4 MdegK (temperatures in K are always positive) + uint32_t mkelvin; // up to 4 MK (temperatures in K are always positive) } temperature_t; typedef struct { - uint64_t mkelvin; // up to 18446744073 MdegK (temperatures in K are always positive) + uint64_t mkelvin; // up to 18446744073 MK (temperatures in K are always positive) } temperature_sum_t; typedef struct |