Fix garbage sent to websocket when using as debug

This commit is contained in:
Luc 2020-04-19 10:57:12 +02:00
parent 6df87a9602
commit c8007cca38
2 changed files with 2 additions and 2 deletions

View File

@ -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 ////////////////////////////////////////////////////////////////////////

View File

@ -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;