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;