Update formatting

This commit is contained in:
fvanroie 2020-11-11 22:14:37 +01:00
parent 9162ee122b
commit e10a3af21c
3 changed files with 24 additions and 22 deletions

View File

@ -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

View File

@ -41,7 +41,7 @@ enum {
TAG_FONT = 92
};
String debugHaspHeader(void);
void debugHaspHeader(Print * output);
void debugPreSetup(JsonObject settings);
void debugSetup();

View File

@ -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"))) {