From 55fa968afbe24111d7995cd3092c7d052f60c246 Mon Sep 17 00:00:00 2001 From: Proddy Date: Sun, 25 Dec 2022 13:04:41 +0100 Subject: [PATCH] remove unneeded variables --- lib_standalone/ESP8266React.h | 49 +++-------------------------------- 1 file changed, 4 insertions(+), 45 deletions(-) diff --git a/lib_standalone/ESP8266React.h b/lib_standalone/ESP8266React.h index e469cc380..7bc563104 100644 --- a/lib_standalone/ESP8266React.h +++ b/lib_standalone/ESP8266React.h @@ -26,43 +26,9 @@ class DummySettings { public: - std::string version{"poerp"}; - String locale = "en"; - uint8_t tx_mode = 1; - uint8_t ems_bus_id = 0x0B; - bool syslog_enabled = false; - int8_t syslog_level = 3; // uuid::log::Level - uint32_t syslog_mark_interval = 0; - String syslog_host = "192.168.1.4"; - uint16_t syslog_port = 514; - bool shower_timer = true; - bool shower_alert = false; - uint8_t shower_alert_coldshot = 10; - uint8_t shower_alert_trigger = 7; - bool hide_led = false; - bool notoken_api = false; - bool readonly_mode = false; - uint8_t bool_format = 1; // using "on" and "off" - uint8_t bool_dashboard = 1; - uint8_t enum_format = 1; - bool nosleep = false; - bool fahrenheit = false; - bool bandwidth20 = false; - bool telnet_enabled = false; - String board_profile = "CUSTOM"; - bool trace_raw = false; - bool analog_enabled = true; // analog is enabled - int8_t weblog_level = 1; - uint8_t weblog_buffer = 50; - bool weblog_compact = true; - uint8_t rx_gpio = 0; - uint8_t tx_gpio = 0; - uint8_t dallas_gpio = 16; // to ensure its enabled - bool dallas_parasite = false; - uint8_t led_gpio = 0; - bool low_clock = false; - uint8_t pbutton_gpio = false; - uint8_t solar_maxflow = 30; + // SYSTEM + bool bandwidth20 = false; + bool nosleep = false; // MQTT uint16_t publish_time = 10; @@ -107,13 +73,6 @@ class DummySettings { bool enableCORS = false; String CORSOrigin = "*"; - uint8_t phy_type = 0; - uint8_t eth_power = 0; // 0 means -1 - uint8_t eth_phy_addr = 0; - uint8_t eth_clock_mode = 0; - -#define FACTORY_MQTT_MAX_TOPIC_LENGTH 128 - static void read(DummySettings & settings, JsonObject & root){}; static void read(DummySettings & settings){}; @@ -188,4 +147,4 @@ class JsonUtils { } }; -#endif +#endif \ No newline at end of file