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 c93f955e..5073b830 100644 --- a/code/espurna/relay.ino +++ b/code/espurna/relay.ino @@ -320,7 +320,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); }