From 4a65bdf1b8cd1133f34d202e07ee388965fe9e41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Tue, 14 Feb 2017 23:32:00 +0100 Subject: [PATCH] Removed unnecessary code --- code/espurna/button.ino | 7 ------- code/espurna/relay.ino | 4 ---- 2 files changed, 11 deletions(-) diff --git a/code/espurna/button.ino b/code/espurna/button.ino index 5eed062b..bb6e9a20 100644 --- a/code/espurna/button.ino +++ b/code/espurna/button.ino @@ -119,13 +119,6 @@ void buttonSetup() { } #endif - #ifdef LED_PULSE - pinMode(LED_PULSE, OUTPUT); - byte relayPulseMode = getSetting("relayPulseMode", String(RELAY_PULSE_MODE)).toInt(); - digitalWrite(LED_PULSE, relayPulseMode != RELAY_PULSE_NONE); - #endif - - #endif DEBUG_MSG("[BUTTON] Number of buttons: %d\n", _buttons.size()); diff --git a/code/espurna/relay.ino b/code/espurna/relay.ino index 8e262d3a..6b390fb9 100644 --- a/code/espurna/relay.ino +++ b/code/espurna/relay.ino @@ -96,10 +96,6 @@ void relayPulseMode(unsigned int value, bool report) { sprintf(message, "{\"relayPulseMode\": %d}", value); wsSend(message); - #ifdef LED_PULSE - digitalWrite(LED_PULSE, value != RELAY_PULSE_NONE); - #endif - } void relayPulseMode(unsigned int value) {