From 04c733353b806e444fde6ddbb58b4feb0819360b Mon Sep 17 00:00:00 2001 From: Max Prokhorov Date: Sun, 10 Nov 2019 07:04:27 +0300 Subject: [PATCH] relay: add WEB_SUPPORT check (#1985) --- code/espurna/relay.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/espurna/relay.ino b/code/espurna/relay.ino index f2c1aae2..ac1ca2da 100644 --- a/code/espurna/relay.ino +++ b/code/espurna/relay.ino @@ -151,7 +151,9 @@ void _relaySyncUnlock() { auto action = []() { _relayUnlockAll(); - _relay_report_ws = true; + #if WEB_SUPPORT + _relay_report_ws = true; + #endif }; if (all_off) {