Skip to content

Commit

Permalink
fix serial LED; fixes #22
Browse files Browse the repository at this point in the history
  • Loading branch information
tve committed Jun 29, 2015
1 parent ca0b995 commit 62e6839
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
6 changes: 3 additions & 3 deletions html/log.html
Expand Up @@ -5,13 +5,13 @@ <h1>Debug Log</h1>

<div class="content">
<div class="pure-g">
<div class="pure-u-1-5">
<div class="pure-u-1-4">
<p style="padding-top: 0.4em;">
<a id="refresh-button" class="pure-button button-primary" href="#">Refresh</a>
</p>
</div>
<p class="pure-u-4-5">
The debug log shows the 1024 last characters printed by the esp-link software itself to
<p class="pure-u-3-4">
The debug log shows the most recent characters printed by the esp-link software itself to
its own debug log.
</p>
</div>
Expand Down
19 changes: 9 additions & 10 deletions serial/serbridge.c
Expand Up @@ -81,8 +81,6 @@ static void ICACHE_FLASH_ATTR serbridgeSentCb(void *arg) {
//os_printf("%d ST\n", system_get_time());
conn->readytosend = true;
sendtxbuffer(conn); // send possible new data in txbuffer

serledFlash(50); // short blink on serial LED
}

// Telnet protocol characters
Expand Down Expand Up @@ -309,15 +307,16 @@ static void ICACHE_FLASH_ATTR serbridgeConnectCb(void *arg) {
// callback with a buffer of characters that have arrived on the uart
void ICACHE_FLASH_ATTR
serbridgeUartCb(char *buf, int length) {
// push the buffer into the microcontroller console
for (int i=0; i<length; i++)
console_write_char(buf[i]);
// push the buffer into each open connection
for (int i = 0; i < MAX_CONN; ++i) {
if (connData[i].conn) {
espbuffsend(&connData[i], buf, length);
}
// push the buffer into the microcontroller console
for (int i=0; i<length; i++)
console_write_char(buf[i]);
// push the buffer into each open connection
for (int i = 0; i < MAX_CONN; ++i) {
if (connData[i].conn) {
espbuffsend(&connData[i], buf, length);
}
}
serledFlash(50); // short blink on serial LED
}

void ICACHE_FLASH_ATTR serbridgeInitPins() {
Expand Down

0 comments on commit 62e6839

Please sign in to comment.