diff --git a/check_custom_build_flags_esp8266.sh b/check_custom_build_flags_esp8266.sh index d8e709a..0d27669 100755 --- a/check_custom_build_flags_esp8266.sh +++ b/check_custom_build_flags_esp8266.sh @@ -1,6 +1,6 @@ #! /bin/bash export FLAGS="$FLAGS -DMODBUS_DISABLE" -export FLAGS="$FLAGS -DCOUNTER_DISABLE" +#export FLAGS="$FLAGS -DCOUNTER_DISABLE" export FLAGS="$FLAGS -DPIO_SRC_REV="$(git log --pretty=format:%h_%ad -1 --date=short) CUSTOM_BUILD_FLAGS_FILE=custom-build-flags/build_flags_esp8266.sh if [ -f $CUSTOM_BUILD_FLAGS_FILE ]; then diff --git a/lighthub/main.cpp b/lighthub/main.cpp index c206871..a3e5b7a 100644 --- a/lighthub/main.cpp +++ b/lighthub/main.cpp @@ -476,8 +476,11 @@ void ip_ready_config_loaded_connecting_to_broker() { char *password = passwordBuf; int syslogPort = 514; char syslogDeviceHostname[16]; - if (mqttArr && (aJson.getArraySize(mqttArr))) deviceName = aJson.getArrayItem(mqttArr, 0)->valuestring; - + if (mqttArr && (aJson.getArraySize(mqttArr))) + { + deviceName = aJson.getArrayItem(mqttArr, 0)->valuestring; + debugSerial<child; thermoItem; thermoItem = thermoItem->next) { if (isThermostatWithMinArraySize(thermoItem, 5)) {