Compare commits

...

2 Commits

Author SHA1 Message Date
551866b040 Version 1.31
Fixed one minor bug.
2023-02-18 10:07:15 +03:00
b940f325f2 Minor changes 2023-02-17 17:01:52 +03:00
2 changed files with 5 additions and 4 deletions

View File

@ -21,7 +21,6 @@
```text ```text
Relay GPIO GPIO12 HIGH Relay GPIO GPIO12 HIGH
Led GPIO GPIO13 LOW
Button GPIO GPIO04 RISING Button GPIO GPIO04 RISING
Ext sensor GPIO GPIO14 DS18B20 Ext sensor GPIO GPIO14 DS18B20
``` ```

View File

@ -32,7 +32,7 @@ typedef struct
std::vector<espnow_message_t> espnowMessage; std::vector<espnow_message_t> espnowMessage;
const String firmware{"1.3"}; const String firmware{"1.31"};
String espnowNetName{"DEFAULT"}; String espnowNetName{"DEFAULT"};
@ -102,11 +102,13 @@ void setup()
if (sensorType == ENST_DHT11 || sensorType == ENST_DHT22) if (sensorType == ENST_DHT11 || sensorType == ENST_DHT22)
dht.setup(sensorPin, DHTesp::AUTO_DETECT); dht.setup(sensorPin, DHTesp::AUTO_DETECT);
} }
if (relayPin) if (relayPin)
{ {
pinMode(relayPin, OUTPUT); pinMode(relayPin, OUTPUT);
digitalWrite(relayPin, relayPinType ? relayStatus : !relayStatus); if (workMode)
digitalWrite(relayPin, relayPinType ? !relayStatus : relayStatus);
else
digitalWrite(relayPin, relayPinType ? relayStatus : !relayStatus);
} }
if (ledPin) if (ledPin)
{ {