Skip to content

Commit

Permalink
optiboot: allow for 9600 baud
Browse files Browse the repository at this point in the history
  • Loading branch information
tve committed Nov 10, 2015
1 parent ca2de1a commit 4975f05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion esp-link/cgioptiboot.c
Expand Up @@ -468,7 +468,8 @@ static bool ICACHE_FLASH_ATTR programPage(void) {

static void ICACHE_FLASH_ATTR armTimer() {
os_timer_disarm(&optibootTimer);
os_timer_arm(&optibootTimer, 100, 0); // 100ms
// time-out every 50ms, except when programming to allow for 9600baud (133ms for 128 bytes)
os_timer_arm(&optibootTimer, progState==stateProg ? 200 : 50, 0);
}

static void ICACHE_FLASH_ATTR optibootTimerCB(void *arg) {
Expand Down

0 comments on commit 4975f05

Please sign in to comment.