diff --git a/README.md b/README.md index ad56ae7..10f8291 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ ESP8266 flashing tool to flash the following: - `boot_v1.3(b3).bin` to 0x00000 - `blank.bin` to 0x7e000 - `user1.bin` to 0x01000 + Note that the firmware assumes a 512KB flash chip, which most of the esp-01 thru esp-11 modules appear to have. diff --git a/user/console.c b/user/console.c index c04ccc5..c872b55 100644 --- a/user/console.c +++ b/user/console.c @@ -41,7 +41,7 @@ tplConsole(HttpdConnData *connData, char *token, void **arg) { if (token==NULL) return HTTPD_CGI_DONE; if (os_strcmp(token, "console") == 0) { - if (console_wr > console_rd) { + if (console_wr < console_rd) { httpdSend(connData, console_buf+console_rd, console_wr-console_rd); } else if (console_rd != console_wr) { httpdSend(connData, console_buf+console_rd, BUF_MAX-console_rd); diff --git a/user/status.c b/user/status.c index 72d81ea..d469242 100644 --- a/user/status.c +++ b/user/status.c @@ -5,7 +5,7 @@ static ETSTimer ledTimer; -void ICACHE_FLASH_ATTR setLed(int on) { +static void ICACHE_FLASH_ATTR setLed(int on) { // LED is active-low if (on) { gpio_output_set(0, (1<