fix serbridge issue

v1.0 v1.0.3
Thorsten von Eicken 9 years ago
parent 8d137394a8
commit 2a8f7583ea
  1. 2
      serial/serbridge.c

@ -67,7 +67,7 @@ sint8 ICACHE_FLASH_ATTR espbuffsend(serbridgeConnData *conn, const char *data, u
// add to send buffer // add to send buffer
uint16_t avail = conn->txbufferlen+len > MAX_TXBUFFER ? MAX_TXBUFFER-conn->txbufferlen : len; uint16_t avail = conn->txbufferlen+len > MAX_TXBUFFER ? MAX_TXBUFFER-conn->txbufferlen : len;
os_memcpy(conn->txbuffer + conn->txbufferlen, data, avail); os_memcpy(conn->txbuffer + conn->txbufferlen, data, avail);
conn->txbufferlen += len; conn->txbufferlen += avail;
// try to send // try to send
sint8 result = ESPCONN_OK; sint8 result = ESPCONN_OK;

Loading…
Cancel
Save