Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelnsantos committed Feb 23, 2017
1 parent 5faaf99 commit 25d5b04
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
10 changes: 0 additions & 10 deletions src/Relay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@ void Relay::begin(){
pinMode(pin, OUTPUT);
}

void Relay::setIsNormallyOpen(bool isNormallyOpen){
normallyOpen = isNormallyOpen;
}

void Relay::setPin(int p){
pin = p;
}
int Relay::getPin(){
return pin;
}
bool Relay::getState(){
if (normallyOpen){
return !state;
Expand Down
3 changes: 0 additions & 3 deletions src/Relay.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ class Relay
Relay();
Relay(int p, bool isNormallyOpen);
void begin();
void setIsNormallyOpen(bool isNormallyOpen);
void setPin(int p);
int getPin();
bool getState();
void turnOn();
void turnOff();
Expand Down

0 comments on commit 25d5b04

Please sign in to comment.