From fc0d050b511526d147457ecada5905e69183cc36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Wed, 9 Aug 2017 23:36:18 +0200 Subject: [PATCH] Remove debug messages on websocket events --- code/espurna/debug.ino | 1 + code/espurna/relay.ino | 1 - code/espurna/web.ino | 2 -- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/code/espurna/debug.ino b/code/espurna/debug.ino index f68b7d57..5f04aa44 100644 --- a/code/espurna/debug.ino +++ b/code/espurna/debug.ino @@ -37,6 +37,7 @@ void debugSend(const char * format, ...) { udpDebug.write(" (...)\n"); } udpDebug.endPacket(); + delay(1); #endif } diff --git a/code/espurna/relay.ino b/code/espurna/relay.ino index 88f636c4..950167c9 100644 --- a/code/espurna/relay.ino +++ b/code/espurna/relay.ino @@ -306,7 +306,6 @@ void relayWS() { wsSend(output.c_str()); } - //------------------------------------------------------------------------------ // Domoticz //------------------------------------------------------------------------------ diff --git a/code/espurna/web.ino b/code/espurna/web.ino index f68b49da..eb538741 100644 --- a/code/espurna/web.ino +++ b/code/espurna/web.ino @@ -45,13 +45,11 @@ char _last_modified[50]; bool wsSend(const char * payload) { if (ws.count() > 0) { - DEBUG_MSG_P(PSTR("[WEBSOCKET] Broadcasting '%s'\n"), payload); ws.textAll(payload); } } bool wsSend(uint32_t client_id, const char * payload) { - DEBUG_MSG_P(PSTR("[WEBSOCKET] Sending '%s' to #%ld\n"), payload, client_id); ws.text(client_id, payload); }