Skip to content

Commit

Permalink
OSW config keys : add dual-time timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
RuffaloLavoisier committed Apr 27, 2022
1 parent ba02129 commit b6c02a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions include/osw_config_keys.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ extern OswConfigKeyDropDown dateFormat;
extern OswConfigKeyFloat daylightOffset;
extern OswConfigKeyBool timeFormat;
extern OswConfigKeyShort timeZone;
extern OswConfigKeyShort dualTimeZone;
extern OswConfigKeyShort resetDay;
#if OSW_PLATFORM_ENVIRONMENT_ACCELEROMETER == 1
extern OswConfigKeyInt stepsPerDay;
Expand Down
16 changes: 8 additions & 8 deletions src/osw_config_keys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ OswConfigKeyDropDown dateFormat("e", "Date & Time", "Date format", "mm/dd/yyyy,d
OswConfigKeyFloat daylightOffset("f", "Date & Time", "Daylight offset",
"Daylight saving time offset in hours (e.g. 0.5 = 30 min)", CONFIG_DAYLIGHTOFFSET);
OswConfigKeyBool timeFormat("g", "Date & Time", "Use 24h time format?", nullptr, true);
OswConfigKeyShort timeZone("h", "Date & Time", "Timezone", "Number of offset hours (e.g. 2 = Berlin).",
CONFIG_TIMEZONE);
OswConfigKeyShort timeZone("h", "Date & Time", "Timezone", "Number of offset hours (e.g. 2 = Berlin).", CONFIG_TIMEZONE);
OswConfigKeyShort dualTimeZone("h1", "Date & Time", "Dual Timezone", "Number of offset hours of target country (e.g. 0 = UTC).", 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);
#if OSW_PLATFORM_ENVIRONMENT_ACCELEROMETER == 1
Expand All @@ -73,14 +73,14 @@ OswConfigKeyBool stepsHistoryClear("o", "Fitness", "Clear historical days", "In

// ...and also here, if you want to load them during boot and make them available in the configuration ui
OswConfigKey *oswConfigKeys[] = {
#ifdef OSW_FEATURE_WIFI
#ifdef OSW_FEATURE_WIFI
// wifi
&OswConfigAllKeys::hostname, &OswConfigAllKeys::wifiSsid, &OswConfigAllKeys::wifiPass,
#ifdef OSW_FEATURE_WIFI_ONBOOT
&OswConfigAllKeys::wifiBootEnabled,
#endif
#ifdef OSW_FEATURE_WIFI_ONBOOT
&OswConfigAllKeys::wifiBootEnabled,
#endif
&OswConfigAllKeys::wifiAlwaysNTPEnabled, &OswConfigAllKeys::wifiAutoAP,
#endif
#endif
// display
&OswConfigAllKeys::settingDisplayTimeout, &OswConfigAllKeys::settingDisplayBrightness,
&OswConfigAllKeys::settingDisplayOverlays, &OswConfigAllKeys::settingDisplayOverlaysOnWatchScreen,
Expand All @@ -94,7 +94,7 @@ OswConfigKey *oswConfigKeys[] = {
&OswConfigAllKeys::lightSleepEnabled,
// date + time
&OswConfigAllKeys::dateFormat, &OswConfigAllKeys::daylightOffset, &OswConfigAllKeys::timeZone,
&OswConfigAllKeys::timeFormat, &OswConfigAllKeys::resetDay,
&OswConfigAllKeys::dualTimeZone, &OswConfigAllKeys::timeFormat, &OswConfigAllKeys::resetDay,
// colors
&OswConfigAllKeys::themeBackgroundColor, &OswConfigAllKeys::themeBackgroundDimmedColor,
&OswConfigAllKeys::themeForegroundColor, &OswConfigAllKeys::themeForegroundDimmedColor,
Expand Down

0 comments on commit b6c02a3

Please sign in to comment.