Skip to content

Commit

Permalink
fix jeelabs#3
Browse files Browse the repository at this point in the history
  • Loading branch information
tve committed May 29, 2015
1 parent 32a7597 commit feb688c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion user/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion user/status.c
Original file line number Diff line number Diff line change
Expand Up @@ -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<<LEDGPIO), (1<<LEDGPIO), 0);
Expand Down

0 comments on commit feb688c

Please sign in to comment.