From c8007cca3807422e27914e4f59ff0fa3d15c349a Mon Sep 17 00:00:00 2001 From: Luc <8822552+luc-github@users.noreply.github.com> Date: Sun, 19 Apr 2020 10:57:12 +0200 Subject: [PATCH] Fix garbage sent to websocket when using as debug --- esp3d/config.h | 2 +- esp3d/espcom.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/esp3d/config.h b/esp3d/config.h index d070be08..cea8f62f 100644 --- a/esp3d/config.h +++ b/esp3d/config.h @@ -19,7 +19,7 @@ */ //version and sources location -#define FW_VERSION "2.1.1.b2" +#define FW_VERSION "2.1.1.b3" #define REPOSITORY "https://github.com/luc-github/ESP3D" //Customize ESP3D //////////////////////////////////////////////////////////////////////// diff --git a/esp3d/espcom.cpp b/esp3d/espcom.cpp index f85ce868..22803845 100644 --- a/esp3d/espcom.cpp +++ b/esp3d/espcom.cpp @@ -69,7 +69,7 @@ long ESPCOM::readBytes (tpipe output, uint8_t * sbuf, size_t len) long l = Serial.readBytes(sbuf,len); #ifdef DEBUG_OUTPUT_SOCKET if(socket_server){ - socket_server->sendBIN(ESPCOM::current_socket_id,sbuf,len); + socket_server->sendBIN(ESPCOM::current_socket_id,sbuf,l); } #endif return l;