extmod/modwebrepl: More detailed debug output.
So detailed that even commented by default.
This commit is contained in:
parent
473b639845
commit
b3bc2ee1b9
@ -161,6 +161,7 @@ STATIC mp_uint_t _webrepl_read(mp_obj_t self_in, void *buf, mp_uint_t size, int
|
|||||||
mp_obj_webrepl_t *self = self_in;
|
mp_obj_webrepl_t *self = self_in;
|
||||||
const mp_stream_p_t *sock_stream = mp_get_stream_raise(self->sock, MP_STREAM_OP_READ);
|
const mp_stream_p_t *sock_stream = mp_get_stream_raise(self->sock, MP_STREAM_OP_READ);
|
||||||
mp_uint_t out_sz = sock_stream->read(self->sock, buf, size, errcode);
|
mp_uint_t out_sz = sock_stream->read(self->sock, buf, size, errcode);
|
||||||
|
//DEBUG_printf("webrepl: Read %d initial bytes from websocket\n", out_sz);
|
||||||
if (out_sz == 0 || out_sz == MP_STREAM_ERROR) {
|
if (out_sz == 0 || out_sz == MP_STREAM_ERROR) {
|
||||||
return out_sz;
|
return out_sz;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user