mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
auto-formatting
This commit is contained in:
@@ -947,7 +947,7 @@ void EMSdevice::generate_values_web_customization(JsonArray & output) {
|
|||||||
obj["m"] = dv.state >> 4; // send back the mask state. We're only interested in the high nibble
|
obj["m"] = dv.state >> 4; // send back the mask state. We're only interested in the high nibble
|
||||||
obj["w"] = dv.has_cmd; // if writable
|
obj["w"] = dv.has_cmd; // if writable
|
||||||
|
|
||||||
if (dv.has_cmd && (obj["v"].is<float>() || obj["v"].is<int>())) {
|
if (dv.has_cmd && (obj["v"].is<float>() || obj["v"].is<int>())) {
|
||||||
// set the min and max values if there are any and if entity has a value
|
// set the min and max values if there are any and if entity has a value
|
||||||
int16_t dv_set_min;
|
int16_t dv_set_min;
|
||||||
uint16_t dv_set_max;
|
uint16_t dv_set_max;
|
||||||
|
|||||||
@@ -30,11 +30,10 @@ class WebStatusService {
|
|||||||
WebStatusService(AsyncWebServer * server, SecurityManager * securityManager);
|
WebStatusService(AsyncWebServer * server, SecurityManager * securityManager);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void webStatusService(AsyncWebServerRequest * request);
|
void webStatusService(AsyncWebServerRequest * request);
|
||||||
void WiFiEvent(WiFiEvent_t event, WiFiEventInfo_t info);
|
void WiFiEvent(WiFiEvent_t event, WiFiEventInfo_t info);
|
||||||
void mDNS_start() const;
|
void mDNS_start() const;
|
||||||
const char * disconnectReason(uint8_t code);
|
const char * disconnectReason(uint8_t code);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace emsesp
|
} // namespace emsesp
|
||||||
|
|||||||
Reference in New Issue
Block a user