From b3bc2ee1b926d6fd6ba2c3be0f8d2d71298b9a82 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 29 Apr 2016 17:37:40 +0300 Subject: [PATCH] extmod/modwebrepl: More detailed debug output. So detailed that even commented by default. --- extmod/modwebrepl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/extmod/modwebrepl.c b/extmod/modwebrepl.c index 1eefb9fa3a..b0757b288a 100644 --- a/extmod/modwebrepl.c +++ b/extmod/modwebrepl.c @@ -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; 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); + //DEBUG_printf("webrepl: Read %d initial bytes from websocket\n", out_sz); if (out_sz == 0 || out_sz == MP_STREAM_ERROR) { return out_sz; }