summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/pref.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/core/pref.h b/core/pref.h
index a037a2da5..f317a795c 100644
--- a/core/pref.h
+++ b/core/pref.h
@@ -59,6 +59,12 @@ typedef struct {
int download_mode;
} dive_computer_prefs_t;
+enum unit_system_values {
+ METRIC,
+ IMPERIAL,
+ PERSONALIZE
+};
+
// ********** PREFERENCES **********
// This struct is kept global for all of ssrf
// most of the fields are loaded from git as
@@ -195,20 +201,14 @@ struct preferences {
bool zoomed_plot;
// ********** Units **********
- bool coordinates_traditional;
- short unit_system;
- struct units units;
+ bool coordinates_traditional;
+ enum unit_system_values unit_system;
+ struct units units;
// ********** UpdateManager **********
update_manager_prefs_t update_manager;
};
-enum unit_system_values {
- METRIC,
- IMPERIAL,
- PERSONALIZE
-};
-
enum def_file_behavior {
UNDEFINED_DEFAULT_FILE,
LOCAL_DEFAULT_FILE,