diff --git a/code/espurna/config/hardware.h b/code/espurna/config/hardware.h index 71ddf4f7..2d0dd5f2 100644 --- a/code/espurna/config/hardware.h +++ b/code/espurna/config/hardware.h @@ -146,8 +146,11 @@ #define MANUFACTURER "ITEAD" #define DEVICE "1CH_INCHING" #define BUTTON1_PIN 0 + #define BUTTON1_RELAY 1 #define BUTTON2_PIN 15 + #define BUTTON2_RELAY 0 #define RELAY1_PIN 12 + #define RELAY1_PIN_INVERSE 0 #define LED1_PIN 13 #define LED1_PIN_INVERSE 0 #define LED_PULSE 14 diff --git a/code/espurna/data/index.html.gz b/code/espurna/data/index.html.gz index 64b44bfd..bde3ff45 100644 Binary files a/code/espurna/data/index.html.gz and b/code/espurna/data/index.html.gz differ diff --git a/code/espurna/relay.ino b/code/espurna/relay.ino index dfdcffeb..f6cddb25 100644 --- a/code/espurna/relay.ino +++ b/code/espurna/relay.ino @@ -118,7 +118,7 @@ void relayPulseMode(unsigned int value, bool report) { wsSend(message); #ifdef LED_PULSE - digitalWrite(LED_PULSE, relayPulseMode != RELAY_PULSE_NONE); + digitalWrite(LED_PULSE, value != RELAY_PULSE_NONE); #endif } diff --git a/code/html/index.html b/code/html/index.html index defd5d43..fcbfb0d9 100644 --- a/code/html/index.html +++ b/code/html/index.html @@ -197,7 +197,7 @@