optiboot: allow for 9600 baud

pull/69/head v2.1.beta1
Thorsten von Eicken 9 years ago
parent ca2de1a437
commit 4975f05c3e
  1. 3
      esp-link/cgioptiboot.c

@ -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) {

Loading…
Cancel
Save