From 2a8f7583ea8368b2afc1b79c7439801735cb8744 Mon Sep 17 00:00:00 2001 From: Thorsten von Eicken Date: Fri, 11 Sep 2015 21:23:54 -0700 Subject: [PATCH] fix serbridge issue --- serial/serbridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serial/serbridge.c b/serial/serbridge.c index 8a912c8..765ed77 100644 --- a/serial/serbridge.c +++ b/serial/serbridge.c @@ -67,7 +67,7 @@ sint8 ICACHE_FLASH_ATTR espbuffsend(serbridgeConnData *conn, const char *data, u // add to send buffer uint16_t avail = conn->txbufferlen+len > MAX_TXBUFFER ? MAX_TXBUFFER-conn->txbufferlen : len; os_memcpy(conn->txbuffer + conn->txbufferlen, data, avail); - conn->txbufferlen += len; + conn->txbufferlen += avail; // try to send sint8 result = ESPCONN_OK;