Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel-Sensate committed Jun 1, 2021
1 parent afca08a commit 18c8778
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Sensatio_FW_ESP8266.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
9 changes: 3 additions & 6 deletions src/controller/Bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -1208,7 +1208,7 @@ uint8_t translateGPIOPort(String gpioPort)
if(gpioPort=="16")
return 16;

return 999;
return 99;
}

boolean postSensorData(Data* data[], int dataCount)
Expand Down Expand Up @@ -1271,9 +1271,6 @@ boolean postSensorData(Data* data[], int dataCount)
Serial.println(", restart at 25");
}

Serial.print(" | HEAP: ");
Serial.println(ESP.getFreeHeap());

return success;
}

Expand Down

0 comments on commit 18c8778

Please sign in to comment.