diff --git a/Sensatio_FW_ESP8266.cpp b/Sensatio_FW_ESP8266.cpp index ff9eb66..a73705b 100644 --- a/Sensatio_FW_ESP8266.cpp +++ b/Sensatio_FW_ESP8266.cpp @@ -38,8 +38,8 @@ int currentVersion = 44; boolean printMemory = false; //String board = "Generic"; -////char firmwareType[] = "ESP8266"; -// char firmwareType[] = "ESP8266-1M"; +//char firmwareType[] = "ESP8266"; +//char firmwareType[] = "ESP8266-1M"; String board = "NodeMCU"; char firmwareType[] = "ESP8266-NodeMCU"; diff --git a/src/controller/Bridge.cpp b/src/controller/Bridge.cpp index 421d053..4d8d001 100644 --- a/src/controller/Bridge.cpp +++ b/src/controller/Bridge.cpp @@ -845,7 +845,7 @@ void configureExpansionPort(int portNumber, JsonObject& portConfig) { else if (portConfig["et"] == "DHT11" || portConfig["et"] == "DHT21" || portConfig["et"] == "DHT22") { uint8_t port = translateGPIOPort(portConfig["ec1"]); - if(port<999) + if(port<99) { addSensor(new SensorDHT(portConfig["id"], portConfig["c"], portConfig["sn"], portConfig["n"], portConfig["et"], port, refreshInterval, postDataInterval, portConfig["s"]["svt"], calc)); } @@ -968,7 +968,7 @@ void configurePort(int portNumber, JsonObject& portConfig) { else { uint8_t intPort = translateGPIOPort(port); - if(intPort<999) + if(intPort<99) { Serial.print("Setting up Digital Switch at Port: "); Serial.println(port); @@ -1208,7 +1208,7 @@ uint8_t translateGPIOPort(String gpioPort) if(gpioPort=="16") return 16; - return 999; + return 99; } boolean postSensorData(Data* data[], int dataCount) @@ -1271,9 +1271,6 @@ boolean postSensorData(Data* data[], int dataCount) Serial.println(", restart at 25"); } - Serial.print(" | HEAP: "); - Serial.println(ESP.getFreeHeap()); - return success; }