mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add new helper function to get temperature and unit
Designed along the lines of get_depth_units - except we don't define a specific number of digits to show. Use this in the one spot we need it right now in profile.c Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
43601f6546
commit
18b8247cb3
3 changed files with 22 additions and 10 deletions
1
dive.h
1
dive.h
|
@ -87,6 +87,7 @@ typedef struct {
|
|||
} cylinder_t;
|
||||
|
||||
extern double get_depth_units(unsigned int mm, int *frac, const char **units);
|
||||
extern double get_temp_units(unsigned int mm, const char **units);
|
||||
|
||||
static inline double mm_to_feet(int mm)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue