diff options
Diffstat (limited to 'src/opendeco-conf.c')
-rw-r--r-- | src/opendeco-conf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/opendeco-conf.c b/src/opendeco-conf.c index e044c90..977bfc5 100644 --- a/src/opendeco-conf.c +++ b/src/opendeco-conf.c @@ -49,6 +49,11 @@ int opendeco_conf_parse(const char *confpath, struct arguments *arguments) if (r.ok) arguments->RMV_DIVE = r.u.d; + + toml_datum_t i = toml_bool_in(dive, "imperial"); + + if (i.ok) + arguments->UNITS = i.u.b ? IMPERIAL : METRIC; } toml_table_t *deco = toml_table_in(od_conf, "deco"); |