mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
add option for rendering booleans on Dashboard #456
This commit is contained in:
@@ -115,6 +115,10 @@ class System {
|
||||
return bool_format_;
|
||||
}
|
||||
|
||||
uint8_t bool_dashboard() {
|
||||
return bool_dashboard_;
|
||||
}
|
||||
|
||||
// see default_settings.h
|
||||
// BOOL_FORMAT_ONOFF_STR = 1,
|
||||
// BOOL_FORMAT_ONOFF_STR_CAP = 2
|
||||
@@ -126,6 +130,10 @@ class System {
|
||||
bool_format_ = format;
|
||||
}
|
||||
|
||||
void bool_dashboard(uint8_t format) {
|
||||
bool_dashboard_ = format;
|
||||
}
|
||||
|
||||
uint8_t enum_format() {
|
||||
return enum_format_;
|
||||
}
|
||||
@@ -250,6 +258,7 @@ class System {
|
||||
String syslog_host_;
|
||||
uint16_t syslog_port_;
|
||||
bool fahrenheit_;
|
||||
uint8_t bool_dashboard_;
|
||||
uint8_t bool_format_;
|
||||
uint8_t enum_format_;
|
||||
bool readonly_mode_;
|
||||
|
||||
Reference in New Issue
Block a user