mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 20:26:41 +00:00
Update formatting
This commit is contained in:
parent
9162ee122b
commit
e10a3af21c
@ -59,7 +59,7 @@ build_flags =
|
||||
;-Os ; Code Size Optimization
|
||||
-Og ; Code Debug Optimization
|
||||
;-w ; Suppress warnings
|
||||
-D CORE_DEBUG_LEVEL=1 ; Errors
|
||||
-D CORE_DEBUG_LEVEL=1 ; 0=Silent, 1=Errors
|
||||
-I include ; include lv_conf.h and hasp_conf.h
|
||||
; -- littlevgl build options ------------------------------
|
||||
-D LV_CONF_INCLUDE_SIMPLE
|
||||
|
@ -41,7 +41,7 @@ enum {
|
||||
TAG_FONT = 92
|
||||
};
|
||||
|
||||
String debugHaspHeader(void);
|
||||
void debugHaspHeader(Print * output);
|
||||
|
||||
void debugPreSetup(JsonObject settings);
|
||||
void debugSetup();
|
||||
|
@ -201,10 +201,12 @@ void dispatchCommand(const char * topic, const char * payload)
|
||||
} else if(topic == strstr_P(topic, PSTR("p["))) {
|
||||
dispatch_process_button_attribute(topic, payload);
|
||||
|
||||
#if HASP_USE_WIFI > 0
|
||||
} else if(!strcmp_P(topic, F_CONFIG_SSID) || !strcmp_P(topic, F_CONFIG_PASS)) {
|
||||
DynamicJsonDocument settings(45);
|
||||
settings[topic] = payload;
|
||||
wifiSetConfig(settings.as<JsonObject>());
|
||||
#endif
|
||||
|
||||
} else if(!strcmp_P(topic, PSTR("mqtthost")) || !strcmp_P(topic, PSTR("mqttport")) ||
|
||||
!strcmp_P(topic, PSTR("mqttuser")) || !strcmp_P(topic, PSTR("mqttpass"))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user