Version 1.31

Fixed one minor bug.
This commit is contained in:
Alexey Zholtikov 2023-02-18 10:07:15 +03:00
parent b940f325f2
commit 551866b040
2 changed files with 5 additions and 3 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"};
@ -105,7 +105,10 @@ void setup()
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)
{ {