Browse Source

Remove RELAY_MODE_FOLLOW

fastled
Xose Pérez 7 years ago
parent
commit
245549f7be
2 changed files with 0 additions and 6 deletions
  1. +0
    -1
      code/espurna/config/general.h
  2. +0
    -5
      code/espurna/relay.ino

+ 0
- 1
code/espurna/config/general.h View File

@ -62,7 +62,6 @@
#define RELAY_MODE_ON 1 #define RELAY_MODE_ON 1
#define RELAY_MODE_SAME 2 #define RELAY_MODE_SAME 2
#define RELAY_MODE_TOOGLE 3 #define RELAY_MODE_TOOGLE 3
#define RELAY_MODE_FOLLOW 4
#define RELAY_SYNC_ANY 0 #define RELAY_SYNC_ANY 0
#define RELAY_SYNC_NONE_OR_ONE 1 #define RELAY_SYNC_NONE_OR_ONE 1


+ 0
- 5
code/espurna/relay.ino View File

@ -480,11 +480,6 @@ void relaySetup() {
pinMode(_relays[i].pin, OUTPUT); pinMode(_relays[i].pin, OUTPUT);
if (relayMode == RELAY_MODE_OFF) relayStatus(i, false); if (relayMode == RELAY_MODE_OFF) relayStatus(i, false);
if (relayMode == RELAY_MODE_ON) relayStatus(i, true); if (relayMode == RELAY_MODE_ON) relayStatus(i, true);
if (relayMode == RELAY_MODE_FOLLOW) {
// retrieve the status of the linked button
int buttonID = buttonFromRelay(i);
relayStatus(i, (buttonID >=0) ? buttonState(buttonID) : false);
}
} }
if (relayMode == RELAY_MODE_SAME) relayRetrieve(false); if (relayMode == RELAY_MODE_SAME) relayRetrieve(false);
if (relayMode == RELAY_MODE_TOOGLE) relayRetrieve(true); if (relayMode == RELAY_MODE_TOOGLE) relayRetrieve(true);


Loading…
Cancel
Save