From 726d45869a5e0e614755f13a935f18bd81595e68 Mon Sep 17 00:00:00 2001 From: Thorsten von Eicken Date: Tue, 15 Sep 2015 20:27:48 -0700 Subject: [PATCH] add logging to serbridge --- serial/serbridge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serial/serbridge.c b/serial/serbridge.c index cecc065..391dd37 100644 --- a/serial/serbridge.c +++ b/serial/serbridge.c @@ -243,7 +243,7 @@ sendtxbuffer(serbridgeConnData *conn) { sint8 result = ESPCONN_OK; if (conn->txbufferlen != 0) { - //os_printf("%d TX %d\n", system_get_time(), conn->txbufferlen); + os_printf("TX %p %d\n", conn, conn->txbufferlen); conn->readytosend = false; result = espconn_sent(conn->conn, (uint8_t*)conn->txbuffer, conn->txbufferlen); conn->txbufferlen = 0; @@ -309,7 +309,7 @@ static void ICACHE_FLASH_ATTR serbridgeSentCb(void *arg) { serbridgeConnData *conn = ((struct espconn*)arg)->reverse; - //os_printf("Sent callback on conn %p\n", conn); + os_printf("Sent CB %p\n", conn); if (conn == NULL) return; //os_printf("%d ST\n", system_get_time()); if (conn->sentbuffer != NULL) os_free(conn->sentbuffer);