Browse Source

Disable TERMINAL_SUPPORT for DUAL

fastled
Xose Pérez 6 years ago
parent
commit
9ec333971a
2 changed files with 3 additions and 2 deletions
  1. +1
    -0
      code/espurna/config/hardware.h
  2. +2
    -2
      code/espurna/relay.ino

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

@ -321,6 +321,7 @@
#define RELAY_PROVIDER RELAY_PROVIDER_DUAL
#define DUMMY_RELAY_COUNT 2
#define DEBUG_SERIAL_SUPPORT 0
#define TERMINAL_SUPPORT 0
// Buttons
#define BUTTON3_RELAY 1


+ 2
- 2
code/espurna/relay.ino View File

@ -50,7 +50,7 @@ Ticker _relaySaveTicker;
#endif
void relayProviderStatus(unsigned char id, bool status) {
void _relayProviderStatus(unsigned char id, bool status) {
// Check relay ID
if (id >= _relays.size()) return;
@ -685,7 +685,7 @@ void relayLoop(void) {
DEBUG_MSG_P(PSTR("[RELAY] #%d set to %s\n"), id, status ? "ON" : "OFF");
// Call the provider to perform the action
relayProviderStatus(id, status);
_relayProviderStatus(id, status);
// Change the binded LED if any
if (_relays[id].led > 0) {


Loading…
Cancel
Save