Skip to content

Commit 2e21540

Browse files
committed
Renamed to stop conflicting symbol on ESP8266
1 parent cf92632 commit 2e21540

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/app_config.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ String mqtt_vrms;
4747
String mqtt_announce_topic;
4848

4949
// Time
50-
String time_zone;
50+
String timezone;
5151

5252
// 24-bits of Flags
5353
uint32_t flags;
@@ -86,7 +86,7 @@ ConfigOpt *opts[] =
8686
new ConfigOptDefenition<String>(sntp_hostname, SNTP_DEFAULT_HOST, "sntp_hostname", "sh"),
8787

8888
// Time
89-
new ConfigOptDefenition<String>(time_zone, "", "time_zone", "tz"),
89+
new ConfigOptDefenition<String>(timezone, "", "time_zone", "tz"),
9090

9191
// EMONCMS SERVER strings
9292
new ConfigOptDefenition<String>(emoncms_server, "https://data.openevse.com/emoncms", "emoncms_server", "es"),
@@ -169,7 +169,7 @@ void config_changed(String name)
169169
DBUGF("%s changed", name.c_str());
170170

171171
if(name == "time_zone") {
172-
config_set_timezone(time_zone);
172+
config_set_timezone(timezone);
173173
} else if(name == "flags") {
174174
divertmode_update((config_divert_enabled() && 1 == config_charge_mode()) ? DIVERT_MODE_ECO : DIVERT_MODE_NORMAL);
175175
if(mqtt_connected() != config_mqtt_enabled()) {

src/app_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ extern String mqtt_vrms;
4343
extern String mqtt_announce_topic;
4444

4545
// Time
46-
extern String time_zone;
46+
extern String timezone;
4747

4848
// Divert settings
4949
extern double divert_attack_smoothing_factor;

src/app_config_v1.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ config_load_v1_settings() {
181181
EEPROM_read_string(EEPROM_SNTP_HOST_START, EEPROM_SNTP_HOST_SIZE, sntp_hostname);
182182

183183
// Timezone
184-
EEPROM_read_string(EEPROM_TIME_ZONE_START, EEPROM_TIME_ZONE_SIZE, time_zone);
185-
config_set_timezone(time_zone);
184+
EEPROM_read_string(EEPROM_TIME_ZONE_START, EEPROM_TIME_ZONE_SIZE, timezone);
185+
config_set_timezone(timezone);
186186

187187
EEPROM.end();
188188
}

0 commit comments

Comments
 (0)