diff --git a/lighthub/inputs.cpp b/lighthub/inputs.cpp index cb316d6..13abc70 100644 --- a/lighthub/inputs.cpp +++ b/lighthub/inputs.cpp @@ -470,7 +470,7 @@ void Input::analogPoll() { // Mapping if (inputMap && inputMap->type == aJson_Array) { - int max; + int max=1024; if (aJson.getArraySize(inputMap)>=4) mappedInputVal = map (mappedInputVal, aJson.getArrayItem(inputMap, 0)->valueint, diff --git a/lighthub/main.cpp b/lighthub/main.cpp index 158c5b7..e0588f3 100644 --- a/lighthub/main.cpp +++ b/lighthub/main.cpp @@ -566,6 +566,11 @@ void ip_ready_config_loaded_connecting_to_broker() { debugSerial< //this needs to be first, or it all crashes and burns... #include #include +//#include +//#include "HttpClient.h" #include #include #include @@ -27,10 +29,12 @@ #endif #if defined ARDUINO_ARCH_ESP32 -//#include //this needs to be first, or it all crashes and burns... +#include //this needs to be first, or it all crashes and burns... //#include #include -#include +//#include "HttpClient.h" +//#include +#include #include #include #include