mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-12 03:29:01 +08:00
Fix garbage sent to websocket when using as debug
This commit is contained in:
parent
6df87a9602
commit
c8007cca38
@ -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 ////////////////////////////////////////////////////////////////////////
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user