mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
remove unneeded variables
This commit is contained in:
@@ -26,43 +26,9 @@
|
|||||||
|
|
||||||
class DummySettings {
|
class DummySettings {
|
||||||
public:
|
public:
|
||||||
std::string version{"poerp"};
|
// SYSTEM
|
||||||
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 bandwidth20 = false;
|
||||||
bool telnet_enabled = false;
|
bool nosleep = 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;
|
|
||||||
|
|
||||||
// MQTT
|
// MQTT
|
||||||
uint16_t publish_time = 10;
|
uint16_t publish_time = 10;
|
||||||
@@ -107,13 +73,6 @@ class DummySettings {
|
|||||||
bool enableCORS = false;
|
bool enableCORS = false;
|
||||||
String CORSOrigin = "*";
|
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, JsonObject & root){};
|
||||||
static void read(DummySettings & settings){};
|
static void read(DummySettings & settings){};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user