Skip to content

Commit

Permalink
0.1.2 relay bug
Browse files Browse the repository at this point in the history
Relays were set to on at startup
  • Loading branch information
koffienl committed Jan 24, 2016
1 parent ee7d852 commit bc9da8e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ESPimatic.ino
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ DHT dht = DHT(0, DHT11);
IRsend irsend(5); //an IR led is connected to GPIO pin 0

String sep = "____";
String ESPimaticVersion = "0.1.1";
String ESPimaticVersion = "0.1.2";
String DS18B20Enabled = "0";
String DHTEnabled = "0";
String MatrixEnabled = "0";
Expand Down Expand Up @@ -468,9 +468,13 @@ void setup()
String relay4pin = HandleEeprom(relay4pin_Address, "read");

pinMode(relay1pin.toInt(), OUTPUT);
digitalWrite(relay1pin.toInt(), HIGH);
pinMode(relay2pin.toInt(), OUTPUT);
digitalWrite(relay2pin.toInt(), HIGH);
pinMode(relay3pin.toInt(), OUTPUT);
digitalWrite(relay3pin.toInt(), HIGH);
pinMode(relay4pin.toInt(), OUTPUT);
digitalWrite(relay3pin.toInt(), HIGH);

}

Expand Down

0 comments on commit bc9da8e

Please sign in to comment.