Skip to content

Commit

Permalink
OSW-CONFIG : add lat, long coord key
Browse files Browse the repository at this point in the history
  • Loading branch information
RuffaloLavoisier committed Jun 15, 2022
1 parent e668acd commit afc7686
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/osw_config_keys.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ extern OswConfigKeyBool timeFormat;
extern OswConfigKeyShort timeZone;
extern OswConfigKeyShort dualTimeZone;
extern OswConfigKeyShort resetDay;
extern OswConfigKeyDouble latitudeCoord;
extern OswConfigKeyDouble longtitudeCoord;
#if OSW_PLATFORM_ENVIRONMENT_ACCELEROMETER == 1
extern OswConfigKeyShort configHeight;
extern OswConfigKeyShort configWeight;
Expand Down
3 changes: 3 additions & 0 deletions src/osw_config_keys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ OswConfigKeyShort timeZone("h", "Date & Time", "Timezone", "Number of offset hou
OswConfigKeyShort dualTimeZone("h1", "Date & Time", "Dual-Timezone", "Number of offset Dual-hours (e.g. 9 = Seoul).", 0);
OswConfigKeyShort resetDay("r", "Date & Time", "Day of the week",
"Choose the day of the week to reset the number of steps (e.g. 1-7 are days, 0 is disabled).", 0);
OswConfigKeyDouble latitudeCoord("t1", "Date & Time", "Latitude for Sunset", "The coordinates of your location (e.g. 37.32103)", 37.78243);
OswConfigKeyDouble longtitudeCoord("t2", "Date & Time", "Longtitude for Sunset", "The coordinates of your location (e.g. 127.10901)", -122.39122);
#if OSW_PLATFORM_ENVIRONMENT_ACCELEROMETER == 1
OswConfigKeyShort configHeight("f4", "Fitness", "User Height", "E.g 175.7 cm -> 175 (Rounds off)", 175);
OswConfigKeyShort configWeight("f5", "Fitness", "User Weight", "E.g 70.3 kg -> 70 (Rounds off)", 70);
Expand Down Expand Up @@ -100,6 +102,7 @@ OswConfigKey* oswConfigKeys[] = {
// date + time
&OswConfigAllKeys::dateFormat, &OswConfigAllKeys::daylightOffset, &OswConfigAllKeys::timeZone,
&OswConfigAllKeys::dualTimeZone, &OswConfigAllKeys::timeFormat, &OswConfigAllKeys::resetDay,
&OswConfigAllKeys::latitudeCoord,&OswConfigAllKeys::longtitudeCoord,
// colors
&OswConfigAllKeys::themeBackgroundColor, &OswConfigAllKeys::themeBackgroundDimmedColor,
&OswConfigAllKeys::themeForegroundColor, &OswConfigAllKeys::themeForegroundDimmedColor,
Expand Down

0 comments on commit afc7686

Please sign in to comment.